Skip to content

Inserting image in form

Raheel Imtiaz

Asked Jan 13, 2006, 5:05 AM EST1 answer
Share
LinkedInX

Hi

I am making a project of chess game for which i have to import gif images of chess pieces .can anyone tell me how to put images in windows forms. do keep in mind that i am making the chess board using GDI+. and do tell me how to move/redraw that image. help in this regard would be appreciated.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
      This is a solution for inserting image into windows forms but i don't know how much it will help you with your chess project 


        openFileDialog1.ShowDialog();
        openFileDialog1.OpenFile();
        this.pictureBox1.Image=System.Drawing.Image.FromFile(openFileDialog1.FileName);
        this.pictureBox1.SizeMode=PictureBoxSizeMode.StretchImage;
    0