473,586 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9418
"Joachim" <Jo*****@discus sions.microsoft .comwrote in message
news:25******** *************** ***********@mic rosoft.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.Use BusyCursor = true;

and to return to normal,

Application.Use BusyCursor = false;

Apr 18 '07 #2
On 18 avr, 14:30, Joachim <Joac...@discus sions.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*****@discus sions.microsoft .comwrote in message
news:25******** *************** ***********@mic rosoft.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.Use BusyCursor = true;

and to return to normal,

Application.Use BusyCursor = 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...@discus sions.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
5388
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 I'm being stupid... Thanks,
10
2743
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 preview DIV) 2. when users close the dialog, the application receives the URL to the selected graphic. 3. the modal dialog lets the users upload a new...
2
1567
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 standard library but was prevented by a python file with the same name in current working directory (but there was no __init__.py). Can I use some...
4
3675
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 where I am storing the file - not what I would have expected. I would have expected it to be the same directory as the dir with my code - I guess I...
7
6544
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 the post below, my question involves non-partitioned table loads. I want to know if, in general, loading from cursor is slower than loading from...
6
99608
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 path.(e:\Project\DataList\bin\debug). But i have created my project at the project directory. Now i want to get the path (e:\Project\DataList\). How i will get this? IS there any...
14
13519
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 this code fragment: .... char otherpath; char cmd;
2
1543
by: amoldiego | last post by:
Please tell me diff between ref cursor and cursor with examples Thanks
3
8220
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 will change the current working directory to the directory which include the script, so my script cannot find the data file. I think this is the...
0
973
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 Windows browser. So the effect is to highlight spans in a list of non congruent Client Names while hovering on the category links on the left...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.