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#.
Who is Participating?
Shaun VermaakConnect With a Mentor Technical Specialist/DeveloperCommented:
Text files (*.txt)|*.txt;*.TXT

Open in new window

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?
mastiSoftAuthor Commented:
Thank you and Happy  New Year!
Shaun VermaakTechnical Specialist/DeveloperCommented:
Anytime, Happy New Year to you too!
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.