I deleted both file dialogs, added another openfiledialog and coded it the same as the first dialog was previously. now the openfiledialog and the savefiledialog does not show any file list. But when i start to type in the file name box a list of the files that are in the folder appear . if i click on one of them files and click open the image file will properly go into the picture box in the program. Here is the code for the open file dialog
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then PBDisplay.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage PBDisplay.Image = Image.FromFile(OpenFileDialog1.FileName) PBDisplay.Visible = True End If
this code is in the file filter on the properties of the open dialog
All files (*.*) | *.* | JPEG files (*.jpg) | *.jpg |BMP files (*.bmp) | *.bmp | PNG files (*.png) |*.png| GIF files (*.gif) |*.gif
What is confusing to me is the code above worked fine before i added the second dialog and my code is now back to the same as it was before i added the second dialog. And i have the same problem no files show in the open file dialog form window.