bushmobile,
your attachment working the way i want.
But still when i try it in my project, it didn't work.
In the Frame1 event mousemove i have code to move Frame1 like this
VB Code:
'declaration
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
Private Const WM_NCLBUTTONDOWN = &HA1
Private Const HTCAPTION = 2
Private Sub Frame1_MouseMove(Button As Integer, Shift As Integer, X As Single, y As Single)
ReleaseCapture
SendMessage Frame1.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0
End Sub
is this have affect?