OpenFileDialog then open image
-
Good Day i want to know how can i make in C# , OpenFileDialog then open image from this OpenFileDialog then can publish in my form . Thank You
zidan
OpenFileDialog is just a class you create, it returns DialogResult.OK if the user presses OK. You can load a bitmap from the stream that is part of the dialog, or use the filename returned to open the image directly. You draw images on your form typcially with a picturebox. Do you have a C# book ?
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Good Day i want to know how can i make in C# , OpenFileDialog then open image from this OpenFileDialog then can publish in my form . Thank You
zidan
openFileDialog1.Filter = "Images|*.jpg;*.gif;*.png|All files|*.*";
will display image files. You can use a PictureBox to display an image. There are tons of examples on Google.
Cheers, Vikram.
The hands that help are holier than the lips that pray.