VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Move a window to a specified point using MoveWindow API

by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 14th February 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Move a window to a specified point using MoveWindow API

API Declarations


Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Rate Move a window to a specified point using MoveWindow API



Dim rval, x, y, z As Long
Form1.AutoRedraw = True
x = 5: y = 5
For z = 1 To 50
rval = MoveWindow(Form1.hwnd, x, y, 100, 100, 1)
Sleep 100
x = x + 5: y = y + 5
Next z
For z = 1 To 50
rval = MoveWindow(Form1.hwnd, x, y, 100, 100, 1)
Sleep 100
x = x + 5: y = y - 5
Next z
End
End Sub
'Visit my Homepage at
'http://www.geocities.com/marskarthik
'http://marskarthik.virtualave.net
'Email: [email protected]

Download this snippet    Add to My Saved Code

Move a window to a specified point using MoveWindow API Comments

No comments have been posted about Move a window to a specified point using MoveWindow API. Why not be the first to post a comment about Move a window to a specified point using MoveWindow API.

Post your comment

Subject:
Message:
0/1000 characters