S Serdar C. Dec 18, 2003 #1 how can i move objects in a form?? i.e: i want to click on a picturebox and move it to another place??
how can i move objects in a form?? i.e: i want to click on a picturebox and move it to another place??
B Bob Powell [MVP] Dec 18, 2003 #2 Just set the location property of the object to the new position. -- Bob Powell [MVP] C#, System.Drawing The November edition of Well Formed is now available. Learn how to create Shell Extensions in managed code. http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Read my Blog at http://bobpowelldotnet.blogspot.com Enable runtime editing of controls with the RectTracker http://www.bobpowell.net/recttracker.htm
Just set the location property of the object to the new position. -- Bob Powell [MVP] C#, System.Drawing The November edition of Well Formed is now available. Learn how to create Shell Extensions in managed code. http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Read my Blog at http://bobpowelldotnet.blogspot.com Enable runtime editing of controls with the RectTracker http://www.bobpowell.net/recttracker.htm
T Tim Matteson Dec 18, 2003 #3 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; }
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; }
I Ignacio Machin \( .NET/ C# MVP \) Dec 18, 2003 #4 Hi, If what you want to use is Drag&Drop take a look at this: http://msdn.microsoft.com/library/d...us/vbcon/html/vbtskstartingdragoperations.asp Cheers,
Hi, If what you want to use is Drag&Drop take a look at this: http://msdn.microsoft.com/library/d...us/vbcon/html/vbtskstartingdragoperations.asp Cheers,