Open File Dialog

Hi I need to know to correctly write the filter for Open File dialog to avoid the problem with case sensitivity.
For example I need to put the filter for text file and it can  be *.txt but also  *.TXT.
I use Visual Studio 2017 C#.
LVL 1
mastiSoftAsked:
Who is Participating?
 
Shaun VermaakConnect With a Mentor Technical Specialist/DeveloperCommented:
Text files (*.txt)|*.txt;*.TXT

Open in new window

1
 
NorieVBA ExpertCommented:
As far as I know the filter isn't case sensitive so should pick up files with both 'txt' and 'TXT' file extensions.

What exactly have you tried?
0
 
mastiSoftAuthor Commented:
Thank you and Happy  New Year!
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
Anytime, Happy New Year to you too!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.