Pictures

The Microsoft.WindowsMobile.Forms namespace contains two components for working with pictures: SelectPictureDialog provides an alternative to the traditional OpenFileDialog by displaying images using thumbnails. This makes it much easier to work with image files because you can see what you are choosing rather than just picking by the file name alone. Figure 17-4 shows the standard appearance of the SelectPictureDialog.

The SelectPictureDialog

Figure 17-4. The SelectPictureDialog

Using the default settings, you can open the dialog box by using just a couple of lines of code. If the device has a built-in camera, the first item in the list on the picker will be a ...

Get Microsoft® Mobile Development Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.