Mouse Cursor Flickering
Posted: Tue Jun 07, 2011 3:09 am
Mouse Cursor Flickering
I am setting the mouse cursor using the following code:
Private Sub TChart1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TChart1.MouseMove
On Error GoTo Error1
If DrawBoxBool = True Or DrawEllipseBool = True Or DrawLineBool = True Or DrawTextBool = True Or DrawSymbolBool = True Then
TChart1.Cursor = Cursors.Cross
Else
TChart1.Cursor = Cursors.Default
End If
End Sub
The problem is the mouse cursor constantly flickers between the cross and default cursor.
I do not have any other reference to the cursor in my form code.
I am setting the mouse cursor using the following code:
Private Sub TChart1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TChart1.MouseMove
On Error GoTo Error1
If DrawBoxBool = True Or DrawEllipseBool = True Or DrawLineBool = True Or DrawTextBool = True Or DrawSymbolBool = True Then
TChart1.Cursor = Cursors.Cross
Else
TChart1.Cursor = Cursors.Default
End If
End Sub
The problem is the mouse cursor constantly flickers between the cross and default cursor.
I do not have any other reference to the cursor in my form code.