Hi guys
I am trying to use the selectPictureDialog.
Here's the code i already have:
VB Code:
  1. Dim selectPictureDialog As SelectPictureDialog = New SelectPictureDialog
  2.         Dim selectedFile As String
  3.         With selectPictureDialog
  4.             .InitialDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
  5.             .Filter = "JPEG (*.jpg)|*.jpg"
  6.             .FilterIndex = 1
  7.             .CameraAccess = True
  8.             .ShowDialog()
  9.             selectedFile = .FileName
  10.             '.SortOrder = SortOrder.DateAscending
  11.         End With
  12.         MsgBox("Photos shown")
Now this code is triggered every time a particular button is clicked. Now when the button is clicked all that happens is the messagebox shows. I also notice a quick flash (which i assume means it is for some reason exiting itself straight after being initialised.) Can anybody see why it is doing this and how i may be able to fix it.

Thanks in advance


Oh n i forgot to mention.....i'm using .net compact framework 2.0 Thanx.