Click here to Skip to main content
15,917,538 members

Comments by Code Mirror (Top 5 by date)

Code Mirror 18-Sep-13 7:19am View    
so what should i do? how to create many pictureboxes at runtime
Code Mirror 14-Sep-13 5:16am View    
sir see answer submitted by me,,,,have i done it right
Code Mirror 14-Sep-13 3:59am View    
because i want to set images at run time on cliack of a button , but the problem is i can't see this picturebox1 in
private void button1_Click(Object sender, EventArgs e)
{
picturebox1.Image=//here i can't set picturebox1 's image
}
Code Mirror 14-Sep-13 3:15am View    
PictureBox picturebox1= new PictureBox();
picturebox1.Name = "picturebox1";
picturebox1.Location =new Point(0, 0);
picturebox1.Size = new Size(817, 447);
Controls.Add(picturebox1);
now when i do
picturebox1.Image = //code to show image
i get error : The name 'picturebox1' does not exist in the current context
Code Mirror 13-Sep-13 9:17am View    
i get this error
The name 'button1_Click' does not exist in the current context