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

Change mouse cursor in VB.NET

Can someone please give me an example of how to change the mousepointer to an
hourglass or whatever other constant in VB.NET? I need to do it from a
start-up module (VB6 days would have been System.Mousepointer = vbHourGlass),
and also from a form (VB6 would have been Me.Mousepointer = vbHourGlass).

Cheers.

Tippy.
Jul 21 '05 #1
2 37888
Hi-
Watch out for line wrapping....

http://msdn.microsoft.com/library/de...ClassTopic.asp

Me.Cursor = System.Windows.Forms.Cursors.Default
Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
etc ....
J
--
************************************************** *****
No email please
Pluralitas non est ponenda sine neccesitate
************************************************** *****
"Tippy G" <Ti****@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
Can someone please give me an example of how to change the mousepointer to
an
hourglass or whatever other constant in VB.NET? I need to do it from a
start-up module (VB6 days would have been System.Mousepointer =
vbHourGlass),
and also from a form (VB6 would have been Me.Mousepointer = vbHourGlass).

Cheers.

Tippy.

Jul 21 '05 #2
Hi

You can put

Me.Cursor = Cursors.WaitCursor

"Tippy G" wrote:
Can someone please give me an example of how to change the mousepointer to an
hourglass or whatever other constant in VB.NET? I need to do it from a
start-up module (VB6 days would have been System.Mousepointer = vbHourGlass),
and also from a form (VB6 would have been Me.Mousepointer = vbHourGlass).

Cheers.

Tippy.

Jul 21 '05 #3

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

Similar topics

2
by: alik | last post by:
hi i am using c sharp and not able to change the cursor sharp to busy state when i am performing some porcessing.please tell me thanks
3
by: Shawn Mesiatowsky | last post by:
how do you change the mouse cursor to an hour glass? thanks for your help
2
by: Tee | last post by:
Hi, From my main form, I am executing another application using System.Diagnostics.Process.Start. The application has its own window displaying when the applicaiton is run. I want to change...
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
2
by: Tippy G | last post by:
Can someone please give me an example of how to change the mousepointer to an hourglass or whatever other constant in VB.NET? I need to do it from a start-up module (VB6 days would have been...
0
by: x taol | last post by:
i want to change mouse cursor to arrow in white of combobox and when mouse press the location, drop down. generally, there is the function possible in microsoft excel. but the access is not, i...
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...
16
by: ykhamitkar | last post by:
Hi there, Is there any way I can change mouse cursor in ms access form using code. If i get get some code which will change mouse cursor with some text that will be great. Thanks, Yogesh
3
by: =?Utf-8?B?Vk1BTQ==?= | last post by:
Hi, I have a windows form with a ownerdraw combobox. When I draw the combobox items I also change the mouse cursor to something different than Cursors.Default. When the DropDown opens and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...
0
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...

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.