Page 1 of 1

Mouse Cursor Flickering

Posted: Tue Jun 07, 2011 3:09 am
by 15657351
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.

Re: Mouse Cursor Flickering

Posted: Tue Jun 07, 2011 8:07 am
by 10050769
Hello lilo,

I understand your problem but I can't reproduce it here. Please can you send us simple project so we can reproduce exactly your problem?

Thanks,