Hi guys
I am trying to use the selectPictureDialog.
Here's the code i already have:
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.VB Code:
Dim selectPictureDialog As SelectPictureDialog = New SelectPictureDialog Dim selectedFile As String With selectPictureDialog .InitialDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) .Filter = "JPEG (*.jpg)|*.jpg" .FilterIndex = 1 .CameraAccess = True .ShowDialog() selectedFile = .FileName '.SortOrder = SortOrder.DateAscending End With MsgBox("Photos shown")
Thanks in advance
Oh n i forgot to mention.....i'm using .net compact framework 2.0 Thanx.




Reply With Quote