ImageMan ActiveX Control Version 8
GetFileName Method
See Also  Example  Send comments on this topic.

Glossary Item Box

Description

Cause the control to display its File Open dialog.

Syntax

Visual Basic
Public Function GetFileName() As Boolean

Return Type

Returns TRUE if the user selected an image otherwise FALSE if the user cancelled the dialog without selecting an image. The selected filename can be obtained from the Picture property.

Remarks

Invoke this method to display the control's file open dialog. The dialog is the Windows common file open dialog and is configured to list all image formats that the control can display.

Example

(Visual Basic)Copy Code
If ImageControl1.GetFileName Then
    ' User loaded an image so lets process it
    ImageControl1.Invert
    ImageControl1.Refresh
Else
    ' User cancelled the File Open dialog
    MsgBox "How dare they cancel my Dialog?"
End If

See Also

© 2014 Data Techniques Inc. All Rights Reserved.