Display image using c#

Tell me how to display image in c# forms using c#



Answer this question

Display image using c#

  • Firas Saltaji

    Can you be more specific For just displaying a Image on a Form you can use the PictureBox control and sets his Image property to the image you want to display.


  • Adi.Condor

    Use a PictureBox... Then to load the image you can use:

    pictureBox1.Image = Image.FromFile("c:\\filename.jpg");


  • SanjeevUpd

    I works fine. Thank you for making simples things for simple people.

    I want to draw a rectangle OVER the image

    ControlPaint.DrawReversibleFrame(rc, Color.Red, FrameStyle.Thick);

    The trouble is that the image is painted back after drawing the rectangle...

    Is there something like "On Paint" with MFC

    Regards



  • Display image using c#