473,651 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I change the mouse's pointer

Hi Gang,
In VB6 is was relatively easy to change the pointer, but now I don't even
see that as a property for any objects. Can somebody tell me how to do that
in .NET?
Thanks in Advance,
Christian Blackburn
Nov 20 '05 #1
9 37197
Hi Christian,

What search keywords did you use when you looked this one up in the Help
or on MSDN?

Regards,
Fergus
MVP [Windows Keyboard, PC Power Switch]
Nov 20 '05 #2
"Christian Blackburn" <Christian@Damn @Sp**@Hotmail.c om> schrieb
Hi Gang,
Hi guy,
In VB6 is was relatively easy to change the pointer, but now I don't
even see that as a property for any objects. Can somebody tell me
how to do that in .NET?


To change the cursor of a control:

Me.Cursor = Cursors.WaitCur sor
To change the cursor for the application:

Cursor.Current = Cursors.WaitCur sor

Cursor.Current is a shared member of the cursor class, not a property of the
Form's cursor.

The latter will keep the cursor only until Application.Doe vents ist called
(see docs).

--
Armin

Nov 20 '05 #3
Cor
UP again?????????? ??
Nov 20 '05 #4
Hi Cor,
Are you referring to how late it is at night? Yes I am and yes it is 4:25AM
Pacifc Standard Time. Ahhh!
Adios Amigo,
Christian

"Cor" <no*@non.com> wrote in message
news:3f******** **************@ reader21.wxs.nl ...
UP again?????????? ??

Nov 20 '05 #5
Hello,

"Christian Blackburn" <Christian@Damn @Sp**@Hotmail.c om> schrieb:
In VB6 is was relatively easy to change the pointer, but now
I don't even see that as a property for any objects. Can
somebody tell me how to do that in .NET?


Use the 'Cursor' property instead.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6
Cor
Christiaan,
No it was for Fergus,
But Adios Amigo Christian to you too.
Cor
Nov 20 '05 #7
see also:
http://msdn.microsoft.com/library/de...asp?frame=true
Visual Studio.NET
Visual Basic and Visual C#
Upgrading applications
Upgrading from VB 6.0
-> Introduction in VB.Net for experienced VB users

direct link:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB/vbcon/html/vboriIntroducti onToVisu
alBasic70ForVis ualBasicVeteran s.htm

(see hints in signature)
--
Armin

- Links might be split into two lines. Concatenate them using notepad.
- Links might require to add a ".nnnn" after the "2003FEB", e.g.
"2003FEB.10 33" for localized versions.
- Links starting with "ms-help" are URLs for the document explorer (<F1>).
Paste them in the URL textbox and press enter. Using internal help (menu
tools -> options -> environment -> help), display the "Web" toolbar that
contains the textbox.
- The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

Nov 20 '05 #8
Thanks guys,
Now that I've got the custom cursor it looks a bit more professional since
it's a board game and I'm using the hand pointer.
Cheers,
Christian Blackburn

"Cor" <no*@non.com> wrote in message
news:3f******** **************@ reader21.wxs.nl ...
Christiaan,
No it was for Fergus,
But Adios Amigo Christian to you too.
Cor

Nov 20 '05 #9
Hi Armin,
Thanks Armin that is an excellent link I'll have to spend a week and
memorize all of it :). No sarcasm intended.
Cheers,
Christian
"Armin Zingler" <az*******@free net.de> wrote in message
news:ux******** *****@TK2MSFTNG P11.phx.gbl...
see also:
http://msdn.microsoft.com/library/de...asp?frame=true

Visual Studio.NET
Visual Basic and Visual C#
Upgrading applications
Upgrading from VB 6.0
-> Introduction in VB.Net for experienced VB users

direct link:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB/vbcon/html/vboriIntroducti onToVisu alBasic70ForVis ualBasicVeteran s.htm

(see hints in signature)
--
Armin

- Links might be split into two lines. Concatenate them using notepad.
- Links might require to add a ".nnnn" after the "2003FEB", e.g.
"2003FEB.10 33" for localized versions.
- Links starting with "ms-help" are URLs for the document explorer (<F1>).
Paste them in the URL textbox and press enter. Using internal help (menu
tools -> options -> environment -> help), display the "Web" toolbar that
contains the textbox.
- The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

Nov 20 '05 #10

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

Similar topics

1
16138
by: John Flynn | last post by:
Bit of a newbie question here...is there a way to change a users mouse pointer (substituting the usual arrow for another image ) upon visiting a web page using JS? Any hints gratefully accepted!
1
92977
by: Ashish Shridharan | last post by:
Hi All, How do we change the mouse pointer (for example : from a arrow to a hand pointer) on the click of a button, in a windows form ?? Thanks in advance Ashish Shridharan
1
2467
by: Oscar | last post by:
Hello!!!! Does anyone know how to change the mouse cursor (from "auto" to "wait" for exemple) in the server-side of our ASP.NET page? Thanks!!!!
4
5167
by: Maria | last post by:
Hello ! I try to change the cursor on the form like this : Me.Cursor = Cursors.WaitCursor 'reading from database 'showing file Me.Cursor = Cursors.Arrow
5
3145
by: mcraven.2 | last post by:
I know this works on all objects except drop down boxes. doc = document.all for (i=0;i<doc.length;i++) { doc(i).style.cursor = 'wait'; } Is it possible to make a cursor into an hourglass over a drop down?
4
7409
by: babun | last post by:
I use the following code in my clientside JavaScript to make calls back to the server. I call asp pages with querystring data. This allows me to save, retrieve, and delete data without submitting the page. function ProcessURL(strURL) { var XMLHTTP; var strResult; document.body.style.cursor='wait'; XMLHTTP = new ActiveXObject( "Microsoft.XMLHTTP" ); XMLHTTP.open( "GET", strURL, false );
6
13919
by: Jan Heppen | last post by:
Is it posible to set something so that when my vb.net (visual studio 2005, framework 2.0) application is busy that the mouse pointer change into a hourglass ? Or do i have to set everywhere where my application do something Windows.Forms.Cursor.Current = Cursors.WaitCursor ?? something is for example calling the sql-server database to get/set data please help me
2
9185
by: shanmugamit | last post by:
hi, i want to change mouse pointer to hand symbol over the select button. but i my code not work... c function fnover(id) { document.getElementById("id").style.cursor="hand"; }
2
21441
by: muddasirmunir | last post by:
I want that my mouse pointer will change to hand when we move our mouse to a text and come to arrorw again when we leave. Just like same as we move our mouse over a hyperlink in explorer. any help ? i had tried on mousemove event of text but did not succeed as the pointer change but did not come back to arrorw again.also i do not know what to write to change to hand pointer instead of hour glass in above code. Thanks
0
8275
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8802
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8697
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8579
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7297
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1909
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.