Create a new Windows project and a button on it, on the click event of the
button add the following code:
Cursor.Current = System.Windows.Forms.Cursors.Cross;
Run the project and click on the button, It was my understanding that the
cursor should change but it does not, it only changes as long as the code is
running for example, replace the previous code with the following:
Cursor.Current = System.Windows.Forms.Cursors.Cross;
System.Threading.Thread.Sleep(1000);
This will change the cursor for one second. Note that the cursor only
changes when the thread is bussy inside the click event.
Is this a bug?
Michael South - 12 Aug 2005 00:24 GMT
I think the cursor will change back to the one the form is set to. Check the
cursor property against the control the mouse is over. I will have to check
though as Visual Studio isn't installed on this computer.
Mike
> Create a new Windows project and a button on it, on the click event of the
> button add the following code:
[quoted text clipped - 12 lines]
>
> Is this a bug?