moving objects in a form.???

  • Thread starter Thread starter Serdar C.
  • Start date Start date
S

Serdar C.

how can i move objects in a form?? i.e: i want to click on a picturebox and
move it to another place??
 
You can use the Left and Top properties:

private void pictureBox1_Click(object sender, System.EventArgs e)
{
this.pictureBox1.Left = 0;
this.pictureBox1.Top = 0;
}
 
Back
Top