Header Ads

Header Ads

How to move any control using C#


How to move button or any control using c#

friends today i will tell you how to move button or any control using c# so following this step.
1.First open visual studio and create a new project
2. second put the any control like button control in form i am putting button on the form .
3. third you put the timer and you true the  enable timer  property true.
4. And right following code in the timer click event


button1.Location=new point(button1.Location.X+1,button1.Location.Y);

Thank you

No comments:

Powered by Blogger.