473,403 Members | 2,270 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,403 software developers and data experts.

Control Mouse Cursor

In VB.NET is there a way to set the mouse cursor to the Wait cursor that
will stay in effect across several forms? For example, I want to set the
cursor to the WaitCursor in formA just before it calls formB and FormB may,
in turn, call another form. I want the WaitCursor until control is returned
to formA where I reset it to Default. (I believe that in VB6 there was the
notion of a screen cursor - that is what I want)

TIA

Wayne
Nov 21 '05 #1
3 8898
Hi,

Me.cursor=cursors.waitcursor ' hourglass
me.cursor=cursors.default '

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

Ken
----------------
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:OJ*************@TK2MSFTNGP12.phx.gbl...
In VB.NET is there a way to set the mouse cursor to the Wait cursor that
will stay in effect across several forms? For example, I want to set the
cursor to the WaitCursor in formA just before it calls formB and FormB
may, in turn, call another form. I want the WaitCursor until control is
returned to formA where I reset it to Default. (I believe that in VB6
there was the notion of a screen cursor - that is what I want)

TIA

Wayne

Nov 21 '05 #2
Thanks for the response Ken but that only seems to change the cursor while
in the original form?

Wayne

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:O2**************@TK2MSFTNGP14.phx.gbl...
Hi,

Me.cursor=cursors.waitcursor ' hourglass
me.cursor=cursors.default '

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

Ken
----------------
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:OJ*************@TK2MSFTNGP12.phx.gbl...
In VB.NET is there a way to set the mouse cursor to the Wait cursor that
will stay in effect across several forms? For example, I want to set the
cursor to the WaitCursor in formA just before it calls formB and FormB
may, in turn, call another form. I want the WaitCursor until control is
returned to formA where I reset it to Default. (I believe that in VB6
there was the notion of a screen cursor - that is what I want)

TIA

Wayne


Nov 21 '05 #3
Hello Wayne,
Thanks for the response Ken but that only seems
to change the cursor while in the original form?


Try:

Cursor.Current = Cursors.WaitCursor

Hope this helps,
Len
Nov 21 '05 #4

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

Similar topics

3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
16
by: DFS | last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to open below the cursor position. It currently opens just to the right and below the cursor position. I hunted through...
15
by: Tinus | last post by:
Hello all, I've created a custom control that draws a monthly schedule (using the Draw function in C#). Basically it draws 31 boxes and writes the day number in every box. This works...
3
by: Blaz Ziherl | last post by:
I have this control that has no MouseEnter or MouseLeave events. How could I find out whether the mouse cursor is over that control or not? Is there an equivalent to the WindowFromPoint API...
2
by: Sam | last post by:
Hi, I can't figure out how to detect when my mouse cursor leaves a panel control. It should not trigger the event (or do anything) when the mouse leave the panel but still is over a control that...
6
by: Andrea V.F. | last post by:
How can I determine the control under the mouse cursor when a user muves the mouse?? For example if the user moves the cursor over a textbox i would receive the name of that textbox without using...
1
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked). The original HTM slides have custom animations to...
1
Ericks
by: Ericks | last post by:
This must be a piece of cake and I'm sure it has been addressed somewhere in this forum. I have a form with a control that when clicked on opens another form. So I want the cursor to change to a...
0
vekipeki
by: vekipeki | last post by:
Does anyone know if there is a way to set a custom mouse cursor for an ActiveX control in .Net? I am adding some mouse functionality to an existing ActiveX control, and would like to change the...
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
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
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
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.