FileDialog.Choose
Syntax:
Returned value:
If True, the selection/save was successful; if False, the opposite.
Description:
Availability:
Note:
Example:
Dialog = New FileDialog(FileDialogMode.Open); Dialog.Title = "Select a file with photo"; Dialog.FullFileName = ""; Dialog.Preview = True; Dialog.Filter = "All pictures (*.bmp;*.dib;*.rle;*.jpg;*.jpeg;*.tif;*.gif;*.png;*.ico;*.wmf;*.emf)|*.bmp;*.dib;*.rle;*.jpg;*.jpeg;*.tif;*.gif;*.png;*.ico;*.wmf;*.emf|" + "Format bmp (*.bmp;*.dib;*.rle)|*.bmp;*.dib;*.rle|" + "Format JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" + "Format TIFF (*.tif)|*.tif|" + "Format GIF (*.gif)|*.gif|" + "Format PNG (*.png)|*.png|" + "Format icon (*.ico)|*.ico|" + "Format metafile (*.wmf;*.emf)|*.wmf;*.emf|"; // pictures If Dialog.Choose() Then Selection = New Picture(Dialog.FullFileName,False); Controls.ImageFiled.Picture = Selection; Else Cancel = True; Return; EndIf; |