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

Glossary Item Box


Cause the control to display its File Open dialog.


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.


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.


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

See Also

© 2014 Data Techniques Inc. All Rights Reserved.