I'm confused about: System.Windows.Forms.Cursor.Current = Cursors.WaitCursor

I'm confused about: System.Windows.Forms.Cursor.Current = Cursors.WaitCursor

Post by Nette » Sun, 07 May 2006 03:30:18


I'm confused about:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor

Seems I read in this NG that it is not necessary to reset Cursor.Current
because it gets reset automatically. Maybe when the sub is exited.

Is that correct?

If not, do I have to store the original value in order to reset it?


Also, if done in a control, is the above different then setting the cursor
property of the control to Cursors.WaitCursor


Finally, It there is more than on thread does the above only apply to the
thread it is in?



Thanks



PS

Is there a better way of doing this?
 
 
 

1. Cursor does not change to WaitCursor over ListView when using delegate in C# MDI child form.

2. how to tell if cursor is sqlite.Cursor or psycopg2.Cursor

Hi everyone,

I've wrapper class around some sql statements and I'm trying to add a
method that does:
if my_cursor is a sqlite cursor, then run "select
last_insert_rowid()"
else if it's a psycopg2 cursor, then run "select
currval( 'my_sequence' )"
etc.
The best I can come up with is import both psycopg2 and sqlite and
then do
if isinstance( self._curs, sqlite.Cursor ) : ...
elif isinstance( self._curs, psycopg2._psycopg.cursor ) : ...
and I can't help thinking there has to be another way to find out what
kind of thing self._curs is. Is there a better way?

TIA
Dima

3. [Python] how to tell if cursor is sqlite.Cursor or psycopg2.Cursor

4. Jumping cursor, random cursor movement, cursor error

5. Hourglass - screen.cursor or form.cursor?

6. crazy cursor - cursor keeps bouncing back form certain clickable a

7. How to determine if cursor is the WaitCursor

8. Cursor WaitCursor Bug

9. Cursors.WaitCursor does not show up

10. Cursors.WaitCursor

11. C#: Cursors.WaitCursor does not show up

12. Any way to get the current system cursor?

13. Select from current cursor position to end of memo field in a form

14. move current cursor line to top of window

15. client side cursor vs server side cursor regarding memory used