|
-
Nov 9th, 1999, 10:12 PM
#1
Using the below code, I give a control the ability to be repositioned by the user.
The only problem is that when the control has been moved in this method, querying the Left and Top properties return the original values from before the move. In a UserControl, quering the Extender object properties does the same.
Is there a way to tell Windows/Visual Basic that the control has moved so the properties can be updated.
Code:
Public Sub ForceWindowMove(hWnd As Long)
ReleaseCapture
SendMessage hWnd, &HA1, 2, 0&
End Sub
------------------
Richard Moss
[email protected]
http://www.users.globalnet.co.uk/~ariad/
-
Nov 10th, 1999, 05:53 PM
#2
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|