PC Review


Reply
Thread Tools Rate Thread

How to change mouse cursor of a process?

 
 
Tee
Guest
Posts: n/a
 
      18th Feb 2005
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.


 
Reply With Quote
 
 
 
 
Inge Henriksen
Guest
Posts: n/a
 
      20th Feb 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>




 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change mouse cursor of a process? Tee Microsoft C# .NET 2 20th Jun 2007 08:05 AM
How to change mouse cursor? Zoo Microsoft Powerpoint 4 27th Dec 2006 01:17 AM
How to change mouse cursor of a process? Tee Microsoft VB .NET 1 20th Feb 2005 07:38 PM
Change Mouse Cursor Shawn Mesiatowsky Microsoft C# .NET 3 19th Oct 2004 03:25 PM
Re: Change mouse pointer / mouse cursor David McRitchie Microsoft Excel Misc 0 16th Sep 2004 12:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:44 PM.