Can anyone tell me how to dynamically change the location of a control at runtime.C# - Change control location?
//somewhere in your code
button1.Location=new Point(20,30);//intial location was (10,20) for exampleC# - Change control location?
As far as I remember from C#, the control object has an x position and y position property or a position changing function... Use IntelliCode to find out, byt typing:
theControl.
and wait for the little box to pop up.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment