My tabcontrol is in the center of my winform.
I need to get the control to smoothly slide to the form's left border on button click.
What is the best way to get this done without compromising UI experience ?
Thanks for any help.
Printable View
My tabcontrol is in the center of my winform.
I need to get the control to smoothly slide to the form's left border on button click.
What is the best way to get this done without compromising UI experience ?
Thanks for any help.
Hi,
Use the Location property;
vb Code:
Tabcontrol.Location = New Point(150,150)' or the location where you want it to
If you want to animate it, you can use a timer that changes the location of your control every x milliseconds. However, to get it to run smoothly, your timer will need to have a very short interval, which will cause it to tick very often, which will not be very good on performance.
If this is really something you want in your application I would suggest having a look at WPF instead of WinForms, where these animations are much more easily done.