Hi ppl,
just wanted to knw if v can specify the file types tat our client can access when he clicks the browsebutton.
i could find fileaccess, filemodes n stuff, but cudnt find the file type specyfying stuff...
for example, if the user clicks the browse button, he/she wil get a window opeing with which the can select the image, but, i just want to show them only .jpeg file types and .gif file types.
can any1 help.. :)
thanks.

use the filter property, something like:

OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "Word (*.doc) |*.doc;*.rtf|(*.txt) |*.txt|(*.*) |*.*"

oh, and please use correct grammar

Yep, thank u...
:)...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.