Private Sub Picture7_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
If Picture7.Point(x, y) = ComPara.Command7.BackColor Then
Shape7.Move x - Val(X4.Text) / 500, y + Val(Y4.Text) / 20
Shape7.Visible = True
Shape7.BorderColor = ComPara.Command7.BackColor
Picture7.ToolTipText = "X:" & Format$(x, "0.0") & "," & "Y:" & Format$(y, "0.0")
Exit Sub
Else
Shape7.Visible = False
End If
End Sub
------------------
这个是vb中的代码,当鼠标在picturebox上移动时,如果遇到了某种特定的颜色,就用一个圈圈标出来
这个在c#中如何实现?