473,387 Members | 1,556 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,387 software developers and data experts.

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 37147
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.com> 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.WaitCursor
To change the cursor for the application:

Cursor.Current = Cursors.WaitCursor

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.Doevents 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.com> 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.2003FEB/vbcon/html/vboriIntroductionToVisu
alBasic70ForVisualBasicVeterans.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.1033" 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*******@freenet.de> wrote in message
news:ux*************@TK2MSFTNGP11.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.2003FEB/vbcon/html/vboriIntroductionToVisu alBasic70ForVisualBasicVeterans.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.1033" 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
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
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
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
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
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...
4
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...
6
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...
2
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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,...
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...

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.