EDN Admin
Well-known member
I need to search a file that his name is test1.exe.
If the name is test1.exe the code is is written, if not msgbox appears with wrong file.
I only have thisim fileDialogBox As New OpenFileDialog()
OpenFileDialog1.FileName = "test1.exe"
OpenFileDialog1.Filter = "test1.exe|*.exe|All files (*.*)|*.*"
OpenFileDialog1.ShowDialog()
Normally i use with pathim fb As New FolderBrowserDialog
fb.Description = "Select directory:"
fb.ShowNewFolderButton = True
If fb.ShowDialog = Windows.Forms.DialogResult.OK Then
View the full article
If the name is test1.exe the code is is written, if not msgbox appears with wrong file.
I only have thisim fileDialogBox As New OpenFileDialog()
OpenFileDialog1.FileName = "test1.exe"
OpenFileDialog1.Filter = "test1.exe|*.exe|All files (*.*)|*.*"
OpenFileDialog1.ShowDialog()
Normally i use with pathim fb As New FolderBrowserDialog
fb.Description = "Select directory:"
fb.ShowNewFolderButton = True
If fb.ShowDialog = Windows.Forms.DialogResult.OK Then
View the full article