Amination in vb.net is quite resource intensive. For somthing as simple as what you described above i'd just create an animated .gif set it as the image property of a label with a transparent background and voila... Your animation happens with out having to add a single line of code.
Hi Retkehing. This little routine will give you a starter.
Start a new project. Put a label and a button on the Form. Place the label on the left of the form and in its Text property put a dash [-] and use font to make it a reasonable size. In the button's click event put this code in:-
VB.NET:
Dim x As Integer
For x = 20 To 250
Label1.Left = x
Me.Update()
Threading.Thread.Sleep(5)
Next
Press F5 and go!
The number in the parentheses after Sleep is a 'delay' and can be changed to what you want.
I do test what I write in the Forum (as I just did so) and it works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.