Skip to content

LoadFromFile Method

Description

Loads an image so that it can be used in the flow graph.

Syntax

Public Sub LoadFromFile( _
    ByVal [FileName](#) As String _
)

Parameters

  • FileName: Filename and path to the file to add.

Example

Loads an image and displays it in the node.

Dim Image As FlowGraphImage  
Set Image = FlowGraph.Images.AddImage  
Image.LoadFromFile App.Path & "\Images\NodeImageCustomers.bmp"  

Set Image = FlowGraph.Images.AddImage  
Image.LoadFromFile App.Path & "\Images\NodeImageOrderDetails.png"

FlowGraph.Pages.RemoveAll  

Dim Page As FlowGraphPage  
Set Page = FlowGraph.Pages.AddPage  

Debug.Print FlowGraph.Pages.Count  

Set FlowGraph.ActivePage = Page  

Dim pTableCustomers As FlowGraphNode  
Set pTableCustomers = Page.Nodes.AddNode

pTableCustomers.Caption = "Customers"  
pTableCustomers.Tooltip = "Customers Table"  
pTableCustomers.Color = RGB(155, 187, 89)  
pTableCustomers.LocationX = 820  
pTableCustomers.LocationY = 360  
pTableCustomers.ImageIndex = 0  
pTableCustomers.Locked = True

See Also

FlowGraphImage Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.