Skip to content

thenanosoft/C-Sharp-Filter-Image-File-Selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This is very simple and easy code to select only images files

Filter Image Selection ScreenShot

Code:

            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "Images *.jpg; *.jpeg; *.gif; *.png; *.bmp; *.tif, *.tiff; | *.jpg; *.jpeg; *.gif; *.png; *.bmp; *.tif, *.tiff;";

            if(openFileDialog.ShowDialog() == DialogResult.OK)
            {
                imgBox.Image = new Bitmap(openFileDialog.FileName);
            }
            else
            {
                MessageBox.Show("Some thing went wrong");
            }

Follow Us: Website Twitter Facebook

About

select filter image file using "OpenFileDialog" Class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages