|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Do I need to reset the cursor or will that happen automatically when I leave the subroutine?If I do the following:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor Do I need to reset the cursor or will that happen automatically when I leave the subroutine? Thanks Try it an see...
Show quoteHide quote " Academic" <academicNOSPAM@a-znet.com> wrote in message news:uXj65eCAHHA.4592@TK2MSFTNGP03.phx.gbl... > If I do the following: > > System.Windows.Forms.Cursor.Current = Cursors.WaitCursor > > Do I need to reset the cursor or will that happen automatically when I > leave the subroutine? > > > > > > Thanks > > I got confusing results.
certainly if you use that statement you know if you reset or not. Do you? Show quoteHide quote "Terry Olsen" <tolse***@hotmail.com> wrote in message news:OHtHuLEAHHA.1464@TK2MSFTNGP02.phx.gbl... > Try it an see... > > " Academic" <academicNOSPAM@a-znet.com> wrote in message > news:uXj65eCAHHA.4592@TK2MSFTNGP03.phx.gbl... >> If I do the following: >> >> System.Windows.Forms.Cursor.Current = Cursors.WaitCursor >> >> Do I need to reset the cursor or will that happen automatically when I >> leave the subroutine? >> >> >> >> >> >> Thanks >> >> > > I just found UseWaitCursor
Looks like I should be using it to set the cursor. The statement below does not say what happens when it is set to false. I'm thinking of nested routines all of which set it to true. What happens if one finishes and sets it to false? Is this what developers use since net 2.0 thanks When this property is set to true, the UseWaitCursor property of all open forms in the application will be set to true. This call will not return until this property has been set on all forms. Use this property when you have a long-running operation, and want to indicate in all application forms that the operation is still processing. Show quoteHide quote " Academic" <academicNOSPAM@a-znet.com> wrote in message news:uXj65eCAHHA.4592@TK2MSFTNGP03.phx.gbl... > If I do the following: > > System.Windows.Forms.Cursor.Current = Cursors.WaitCursor > > Do I need to reset the cursor or will that happen automatically when I > leave the subroutine? > > > > > > Thanks > >
incorrect string format
Altering a DBF File Merge/Synchronize XML Files [Regular Expression] (aaa AND bbb) OR (ccc AND ddd) Fundamental OOP inheritance question Accessing an arraylist from multiple forms. don't show error windows Unable to remove Beep on Alt+A Can reflection tell the base class of an object? Resource File Woes |
|||||||||||||||||||||||