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; "; 

No comments:

Post a Comment