Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move image within form boundries
Message
From
17/04/2002 05:37:46
 
 
To
17/04/2002 01:24:48
General information
Forum:
Visual Basic
Category:
Pictures and Image processing in VB
Miscellaneous
Thread ID:
00645803
Message ID:
00645816
Views:
6
Change in cycle (For is appropriate; you can use appropriate step) Top (or Top and Left, if you want diagonal move) property of the moved element:

For i=100 to 0 step -2
[element].Top = i
next i

or:

For i=100 to 0 step -2
[element].Left = [element].Left + 2
[element].Top = i
next i

If Top = 0, change direction of move:

For i=0 to 100 step 2
[element].Top = i
next i

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform