OpenFileDialog _dialog =
new OpenFileDialog();
_dialog.Filter =
" All Image Files|*.bmp;*.ico;*.gif;*.jpeg;*.jpg;*.png;*.tif;*.tiff| "
" Windows Bitmap(*.bmp)|*.bmp| "
" Windows Icon(*.ico)|*.ico| "
" Graphics Interchange Format (*.gif)|(*.gif)| "
" JPEG File Interchange Format (*.jpg)|*.jpg;*.jpeg| "
" Portable Network Graphics (*.png)|*.png| "
" Tag Image File Format (*.tif)|*.tif;*.tiff ";
if (DialogResult.OK == _dialog.ShowDialog( this))
{
}
_dialog.Filter =
" All Image Files|*.bmp;*.ico;*.gif;*.jpeg;*.jpg;*.png;*.tif;*.tiff| "
" Windows Bitmap(*.bmp)|*.bmp| "
" Windows Icon(*.ico)|*.ico| "
" Graphics Interchange Format (*.gif)|(*.gif)| "
" JPEG File Interchange Format (*.jpg)|*.jpg;*.jpeg| "
" Portable Network Graphics (*.png)|*.png| "
" Tag Image File Format (*.tif)|*.tif;*.tiff ";
if (DialogResult.OK == _dialog.ShowDialog( this))
{
}