this.Cursor works but not Cursor.Current not working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Am I not supposed to be able to set the current cursor by assigning
Cursor.Current? this.Cursor in the main dialog works, but not Cursor.Current
other components. I am using a third party tool called SandDock to get Visual
Studio 2005 look and feel. Could that library cause it not to work?
 
Joachim said:
Am I not supposed to be able to set the current cursor by assigning
Cursor.Current? this.Cursor in the main dialog works, but not
Cursor.Current
other components. I am using a third party tool called SandDock to get
Visual
Studio 2005 look and feel. Could that library cause it not to work?

There's some variation as to what forms and components are affected by each
way of setting the cursor. If you want to put an hourglass on everything in
the whole application, try this:

Application.UseBusyCursor = true;

and to return to normal,

Application.UseBusyCursor = false;
 
Am I not supposed to be able to set the current cursor by assigning
Cursor.Current? this.Cursor in the main dialog works, but not Cursor.Current
other components. I am using a third party tool called SandDock to get Visual
Studio 2005 look and feel. Could that library cause it not to work?

this.Cursor = Cursors.Default;
this.Cursor = Cursors.Hand;
....

Hope that help.
 
Yes, but how do I set the cursor from a class where I don't have access to a
this pointer which has a Cursor property?
 
Back
Top