Showing posts with label Restricting. Show all posts
Showing posts with label Restricting. Show all posts

Friday, June 28, 2013

Restricting the Opening File Type in C# in OpenFileDialog

 // Calling the OpenFileDialog           
                  OpenFileDialog Openfile = new OpenFileDialog(); 
// Defining the Allowed File Types
            Openfile.Filter = "Image Files ( *.jpg; *.jpeg)| *.jpg; *.jpeg; ";