Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag Window
Message
From
09/02/2003 20:16:57
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Drag Window
Miscellaneous
Thread ID:
00751242
Message ID:
00751242
Views:
51
Previously I used the following code to move the form. I don't know how to do this in .NET? Anyone know how?
' Declarations 
    Public Declare Function ReleaseCapture Lib "user32" () As Long
    Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
                              (ByVal hWnd As Long, ByVal wMsg As Long, _
                              ByVal wParam As Long, ByVal lParam As Long) As Long

' In the form or object that can be used to move the form 
    Private Sub object_MouseDown()
        ReleaseCapture()
        SendMessage(Me.hwnd, &HA1, 2, 0&)
    End Sub
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Next
Reply
Map
View

Click here to load this message in the networking platform