how to write reversi in windows forms application

i dont know how to write chess board (Visual studio 2010)

private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {

bd = gcnew array <PictureBox^,2>(8,8);
for (int i=0; i<8; i++)
for (int j=0; j<8; j++)
{
bd[i,j] = gcnew PictureBox();
bd[i,j]->Location = Point(20+i*40, 20+j*40);
bd[i,j]->Size = System::Drawing::Size(40,40);
//bd[i,j]->Hide();
// bd[i,j]->Image = imageList1->Images[0];
bd[i,j]->Text = "0";
Controls->Add(bd[i,j]);

bd[i,j]->Click += gcnew System::EventHandler(this, &Form1::pict_Click);

}

can someone help?
Last edited on
Topic archived. No new replies allowed.