疑似我理解你到底碰到什么问题了。
试试看这个代码。
- Private Sub GcClassicFunctionKey1_MouseMove(sender As Object, e As MouseEventArgs) Handles GcClassicFunctionKey1.MouseMove
- Dim bounds = New Rectangle(Point.Empty, Me.GcClassicFunctionKey1.Size)
- If Not bounds.Contains(e.Location) Then
- Me.GcClassicFunctionKey1.Enabled = False
- Me.GcClassicFunctionKey1.Enabled = True
- End If
- End Sub
复制代码 |