Results 1 to 2 of 2

Thread: Object Position Properties

  1. #1
    Guest

    Post

    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/


  2. #2
    New Member
    Join Date
    Nov 1999
    Posts
    9

    Post

    Try using SetWindowPos

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width