OpenDialog
Previous Top Next

The OpenDialog control allows the user to select a file to open.
The file location is restricted to My Documents or the storage card (operating system limit).
The dialog returns cCancel if the user pressed the cancel button.
Properties and Methods:
             File
             Filter
             Show
Events:
None.

Example: (Add an OpenDialog named OpenDialog1 first)
OpenDialog1.Filter = "Image Files|*.bmp;*.jpg"
If OpenDialog1.Show <> cCancel Then
            Form1.Image = OpenDialog1.File
End If

This example lets the user choose the image for the form's background.