Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Const WM_NCHITTEST As Integer = &H84
  2. Const HTCLIENT As Integer = &H1
  3. Const HTCAPTION As Integer = &H2
  4. Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
  5. Select Case m.Msg
  6. Case WM_NCHITTEST
  7. MyBase.WndProc(m)
  8. If m.Result = HTCLIENT Then m.Result = HTCAPTION
  9. Case Else
  10. MyBase.WndProc(m)
  11. End Select
  12. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement