How to change mouse cursor of a process?

T

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.
 
I

Inge Henriksen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top