user17485293
user17485293

Reputation:

open certain files with OpenFileDialog

I have a button in my program that when clicked opens OpenFileDialog and show all *.jpeg files that are in a certain path. Now, I want to show only those photo files that have "water" in their names not all files. please guide me.

Upvotes: 0

Views: 50

Answers (1)

Jon Roberts
Jon Roberts

Reputation: 2282

Changing your filter from

filter = "Images |*.jpeg"

to

filter = "Images of Water |*water*.jpeg"

Upvotes: 1

Related Questions