Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Shows how to move a form without a title bar....
Submitted:
7/31/2000
Version:
VB5
Compatibility:
VB5, VB6
Category:
Windows API
Views:
14587
Shows how to move a form without a title bar.
Declarations:
Declare Function ReleaseCapture Lib "user32" () As Long Declare Function SendMessage Lib _ "user32" Alias "SendMessageA" _ (ByVal hwnd As Long, _ ByVal wMsg As Long, _ ByVal wParam As Long, _ lParam As Any) As Long Public Const HTCAPTION = 2 Public Const WM_NCLBUTTONDOWN = &HA1
Code:
'Place this code in the MouseDown event of the form. ReleaseCapture SendMessage hwnd,WM_NCLBUTTONDOWN,HTCAPTION,0&
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement