Openfiledialog filter
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts
Page 1 of 1
Is it possible to get the openfiledialog only to accept if the file name of the selected file is ex. "javaw.exe so it wont accept "java.exe"?
Last edited by AnoPem on Sun Apr 08, 2012 9:12 pm, edited 1 time in total.
I thought that was possible with smth alike this:
Code: Select all
Did not test it so dont know for sure if it works.If openfiledialog.result = "result.exe" then
'run
else
'end or smth
Practice makes perfect!
VIP since: 6-10-2011
VIP since: 6-10-2011
Code: Select all
OpenFileDialog1.Filter = "Javaw|Javaw.exe"
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

MrAksel wrote:Thank youCode: Select allOpenFileDialog1.Filter = "Javaw|Javaw.exe"

4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023