Move Form Tanpa Title Bar di Visual Basic 6.0

Copas Code ini di Form :



Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
Dim ReturnValue As Long
If Button = 1 Then
   Call ReleaseCapture
   ReturnValue = SendMessage(Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
End If
End Sub


Copas Code ini di Module


Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Declare Sub ReleaseCapture Lib "User32" ()
Public Const WM_NCLBUTTONDOWN = &HA1
Public Const HTCAPTION = 2







Selamat Mencoba!!
Kalau sukses jangan lupa Like nya ;;)

0 komentar:

Posting Komentar

Created By Andi Hakim. Diberdayakan oleh Blogger.