drag move title without title bar? 
Author Message
 drag move title without title bar?

how to drag/move a form without using the title bar?

please post sample code!

thanks



Sun, 28 Jul 2002 03:00:00 GMT  
 drag move title without title bar?
Hi,

Try this code:

---xxx---
Private Const WM_SYSCOMMAND = &H112
Private Const MOUSE_MOVE = &HF012&

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

Private Declare Function ReleaseCapture Lib "user32" () As Long

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single,
Y As Single)
    ReleaseCapture
    Call SendMessage(hWnd, WM_SYSCOMMAND, MOUSE_MOVE, 0)
End Sub
---xxx---

Nos vemos.
Guillermo
---
Microsoft Visual Basic MVP
Te invito a visitar mis pginas sobre Visual Basic
http://guille.costasol.net/
==================================================


Quote:
> how to drag/move a form without using the title bar?

> please post sample code!

> thanks



Sun, 28 Jul 2002 03:00:00 GMT  
 drag move title without title bar?

?how to drag/move a form without using the title bar?

  http://support.microsoft.com/support/kb/articles/q173/7/73.asp

--
Paul Marshall



Sun, 28 Jul 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to know when the user has moved the form by dragging the title bar

2. Dragging a form without any title bar?

3. Drag form without title bar

4. Dragging a form without a title bar: please help

5. Dragging Without a Title Bar?

6. Moving a Form Without a title bar [vb3]

7. Moving a form without a title bar

8. Moving without title bar?

9. form move without title bar

10. How to move window without title bar?

11. Moving a FORM in VB4 without using the TITLE Bar

12. Move Form without Title Bar

 

 
Powered by phpBB® Forum Software