Cursor.Current returns null in my application and HotSpot.X and HotSpot.Y returns 0 and mouse cursor disappears

karthi keyan 1 Reputation point
2022-02-25T13:15:48.257+00:00

Cursor.Current returns null in my application and HotSpot.X and HotSpot.Y returns 0 and mouse cursor disappears
Note: I am not having any customized cursor.

am having google mapwebview control in my form, am doing pinch -zoom in and zoomout through touchscreenlaptop and clicking F6 key to open another window. the cursor disappears.

I tried the following piece of code, but it's not working

if(Cursor.Current == null)
{
//Cursor.Current = Cursors.WaitCursor;

            Cursor cur = Cursors.Arrow;

            this.Cursor = cur;
        }
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
{count} votes