zunebuggy65
Active member
- Joined
- Oct 12, 2023
- Messages
- 42
- Programming Experience
- 3-5
I have a file that could be in various directories but the filename and extension itself is a known value. I would like the OpenFileDialog1 to allow the user to browse for it, but only that specific file.
I have tried
and it does work as you would expect, but the Filter that is displayed in the dialog dropdown right above the Open Cancel buttons doesn't look too pretty. Is there a better way to write the .Filter statement?
I'm pretty sure there is a way to do this because I have seen something similar in older versions of Windows. Maybe Windows XP, but it may have been a different type of file dialog or a custom one.
Thank you.
I have tried
VB.NET:
OpenFileDialog1.Filter = "|filename.abc"
I'm pretty sure there is a way to do this because I have seen something similar in older versions of Windows. Maybe Windows XP, but it may have been a different type of file dialog or a custom one.
Thank you.