473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

this.Cursor works but not Cursor.Current not working

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?
Apr 18 '07 #1
4 9405
"Joachim" <Jo*****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
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;

Apr 18 '07 #2
On 18 avr, 14:30, Joachim <Joac...@discussions.microsoft.comwrote:
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.
--
neva

Apr 18 '07 #3
Thanks.
Ok.. what if I want a custom cursor or a cursor specified in the Cursors
class?

"Michael A. Covington" wrote:
"Joachim" <Jo*****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
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;

Apr 18 '07 #4
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?

"neva" wrote:
On 18 avr, 14:30, Joachim <Joac...@discussions.microsoft.comwrote:
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.
--
neva

Apr 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Shaun Heveron | last post by:
Hi, I'm working on a portable ANSI C++ application designed to compile and execute under Windows and LINUX/UNIX. Is there a portable way of obtaining the current working directory? Sorry, if...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
2
by: ssjassal | last post by:
Is there a way to instruct Python to import modules from standard library even if there is one with the same name in the current working directory? I was trying to import BaseHTTPServer.py from...
4
by: Jeff | last post by:
I feel like I should have been able to figure this out but I can't seem to find any references on this topic. It seems like my current working directory is consistently a few directories up from...
7
by: P. Adhia | last post by:
Sorry for quoting an old post and probably I am reading out of context so my concern is unfounded. But I would appreciate if I can get someone or Serge to confirm. Also unlike the question asked in...
6
by: Bina | last post by:
Hi, I m new in c#.net . In C#.net, how i will get the current working path? when i used following function "Application.StartupPath" then it show the executable...
14
by: gio | last post by:
I have a problem and the solution should works under windows and unix OS. Suppose I have a program ex.c in the directory X (so the current working directory of ex.c is X). Also suppose I have...
2
by: amoldiego | last post by:
Please tell me diff between ref cursor and cursor with examples Thanks
3
by: duyanning | last post by:
I have written a pyhton script that will process data file in current working directory. My script is in an different directory to data file. When I debug this script using pdb within emacs, emacs...
0
by: Neil Snape | last post by:
Hi. I was happy when this little rollover effect was working on my MAcs all browsers. It is also working on all Windows Chrome, FF, Opera, Safari too, but only IE6. Funny I thought IE6 was the buggy...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.