日期:2014-05-17 浏览次数:20934 次
Public Class Form1
Declare Function SendMessageW Lib "user32" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Protected Overrides Sub OnMouseDown(e As MouseEventArgs)
MyBase.OnMouseDown(e)
If e.Button = MouseButtons.Left Then
Capture = False
SendMessageW(Me.Handle, &HA1, 2, 0)
End If
End Sub
End Class