473,503 Members | 11,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change mouse cursor of a process?

Tee
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 the cursor to a hourglass. But I only can change my own
form's cursor using Cursor.Current, whenever I move my mouse cursor into the
window, the mouse cursor back to default cursor.
I want to change the cursor in the process's window too. Can anyone tell me
how to do that?
Thanks.
Jul 21 '05 #1
1 2172
The cursor icons are set per form, so you might have to add an hourglass
icon to the process form, when you are writing something like :
Cursor = Cursors.WaitCursor

then you are actually writing :

Me.Cursor = Cursors.WaitCursor

, so you need to get the handle to the process window, and then write
something like:

Me.Cursor = Cursors.WaitCursor
pProcessFrm.Cursor = Cursors.WaitCursor

-Inge

"Tee" <th*@streamyx.com> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
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 the cursor to a hourglass. But I only can change my own
form's cursor using Cursor.Current, whenever I move my mouse cursor into
the
window, the mouse cursor back to default cursor.
I want to change the cursor in the process's window too. Can anyone tell
me
how to do that?
Thanks.


Jul 21 '05 #2

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

Similar topics

3
17290
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...
2
9611
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
5162
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
8
16983
by: Eddie | last post by:
Hi All, I just want to change the mouse cursor during a process. I want a hourglass... How may I do it ? Thx
3
4851
by: Steve Long | last post by:
I hope this isn't too stupid of a question but I'm looking for a way to change an item in a listview control when the mouse moves over it. I'd like to change its color and underline it for a...
6
13902
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...
18
22045
by: eliss.carmine | last post by:
Is it possible to simulate a mouse click in the window I made (it's a Form), but not give it focus? I tried using WinAPI's mouseevent and SendMessage of WM_LBUTTONDOWN/WM_LBUTTONUP as suggested...
5
2327
by: Luke R | last post by:
1) Me.Cursor = Cursors.WaitCursor This works - except when you hover the mouse over a textbox or datagridview control, it doesnt show the waitcursor. 2) Me.UseWaitCursor = True This works if i...
0
2289
by: Studlyami | last post by:
I am trying to find how windows translate the input from a HID device to an actual windows message; specifically, the mouse. I am trying to figure out how when the mouse moves the process windows...
0
7212
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
7296
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
7364
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...
1
7017
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
7470
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...
1
5026
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...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.