I got past the basics Cursor.Hide() on app startup and Cursor.Show() when
exiting. I've run into some strange cases where the cursor would show up
briefly.
1. When switching forms, if the cursor position is inside a disabled
control, the cursor shows up when the new form is displayed. It goes away as
soon as the mouse (or touch screen press) moves the cursor. I fixed this by
not disabling controls. But I don't understand why it was necessary.
2. Now I'm left with the weirder one. I'm using custom buttons (round and
round rect) which are derived from Control. The first time I press one of
these buttons, when the mouse up event is processed and the button redrawn,
the arrow cursor is also drawn. This only happens on the first button press
for a button (i.e. it happens once for each button, but never on subsequent
presses of that button). It does not happen on the mouse down handling (which
also does a redraw of the button).
Drawing of the button content is done in an offscreen graphics context if
that is relevant.
I'm at a loss to explain this behavior and unsure how to proceed to
eliminate it.
I then tried to get smart and create a blank custom cursor, but there is no
support for custom cursors in the CF .
Any suggestions for ways to eliminate this or to work around this (custom
cursor?) would be greatly appreciated.
Thanks,
Steve