Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15524

Minimum Top and left movements restricted to 1?

$
0
0
Thanks to Arnoutdv, I was able to replace my Shape Control with a User Control created by Eduardo.

As I move this User Control on my screen via timers, I attempted to make the control SLOWLY progress DOWN the screen while moving it (a little bit faster) to the right (and eventually left and then back and forth).

So, my Timer looks something like this:

Code:

Private Sub Timer1_Timer()
    If WinShape1.Left < 14670 Then
        WinShape1.Left = WinShape1.Left + 15
        WinShape1.Top = WinShape1.Top + 0.3
    Else
        Timer2.Enabled = True
        Timer1.Enabled = False
    End If

BUT, the "0.3" has no affect (effect????, I never remember the correct usage of that word!!!)...I have to use, at minimum, a one (1) to increase the Top value. Is there someway to move a control less than 1 pixel(???) at a time. (Not sure if pixel is correct.)

Sam

Viewing all articles
Browse latest Browse all 15524

Trending Articles