Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
3/29/2010

Displays the "Select Picture" dialog box.

Namespace:Microsoft.WindowsMobile.Forms
Assembly:Microsoft.WindowsMobile.Forms (in microsoft.windowsmobile.forms.dll)

Syntax

Remarks

This is a modal dialog box.


Example

This sample shows how to call and display the custom dialog box for selecting pictures. The resulting dialog will:

  • Filter out image files by displaying only .JPG and .BMP files.

  • Launch the dialog in the '\My Device\My Images' directory

  • Display a custom title.

Copy Code
SelectPictureDialog pickerDialog = new SelectPictureDialog();

pickerDialog.Filter = "Image Files(*.BMP;*.JPG)|*.BMP;*.JPG";
pickerDialog.InitialDirectory = @"\My Device\My Images";
pickerDialog.Title ="Select an image file";

pickerDialog.ShowDialog();

Thread Safety

Any public static ( Sharedin Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also