• 0

[vb] How To Move A Form


Question

I want to use a non-title form, but I cant move the form (doh)... and I have seen other programs that have the same functions that winamp have, I have searched the web but havent find anything.

How to move the form by using drag-drop? :blink:

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

This is the best method I've seen.

Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

' Put this anywhere you'd like to be able to drag from, like the MouseDown event on the form
ReleaseCapture
SendMessage Me.hwnd, &HA1, 2, 0&

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.