By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,490 Members | 3,266 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,490 IT Pros & Developers. It's quick & easy.

How to change mouse cursor of a process?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.