Hi,I want to create a picturebox at runtime.i mean when i click a button then,the picturebox is created.
i have tried this code, but it doesnt work.
PictureBox^ pct; pct=gcnew PictureBox; pct->Location = Point(240,210); pct->Size.Height= 30; pct->Size.Width= 30; pct->BackColor.Aquamarine; Controls->Add(pct); pct->Visible=true;
i am using visual c++ 2008.
after i create a picturebox,i want to create an array of pictureboxes.can anybody please tell me how to create a picturebox and its array.