Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: sorting Pin
Simon P Stevens27-May-10 3:33
Simon P Stevens27-May-10 3:33 
GeneralRe: sorting Pin
Luc Pattyn27-May-10 3:38
sitebuilderLuc Pattyn27-May-10 3:38 
GeneralRe: sorting [modified] Pin
harold aptroot27-May-10 3:31
harold aptroot27-May-10 3:31 
GeneralRe: sorting Pin
Ramkithepower27-May-10 5:13
Ramkithepower27-May-10 5:13 
AnswerRe: sorting Pin
Luc Pattyn27-May-10 3:19
sitebuilderLuc Pattyn27-May-10 3:19 
QuestionDetect Event Pin
dataminers27-May-10 2:47
dataminers27-May-10 2:47 
AnswerRe: Detect Event Pin
PIEBALDconsult27-May-10 3:00
mvePIEBALDconsult27-May-10 3:00 
AnswerRe: Detect Event Pin
Dave Kreskowiak27-May-10 6:05
mveDave Kreskowiak27-May-10 6:05 
There is no communication between the two processes. Your service code will never know the user did anything in the other application. Hooking the message pump of another application and interpreting what the user sees and is doing with the mouse is VERY complicated and is, depending on your skill level, going to be prone to failures.

I know, you asked about events. "Events", in the method that you're probably thinking of using, do not cross process boundries. There is no way for a message pump in one application to raise an event in another app.

The application that the user is clicking around in would have to handle it's own, for example, Click event, then setup and make an interprocess call to your service, or, just send the service process a message over some communication line you've setup in both applications.

The best option would be, if you wrote both applications, to setup a communication system between the two apps so the application the user is using can tell the service what's going on and what the user is doing.

It is always far easier, and more reliable, for an application to tell another one what it is doing than it is for an application to try and figure out what is going on in another application by "watching" it.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: Detect Event Pin
PIEBALDconsult28-May-10 3:57
mvePIEBALDconsult28-May-10 3:57 
QuestionHow to suppress Word popup - Printing silently in background ? Pin
fracalifa27-May-10 2:09
fracalifa27-May-10 2:09 
Questiondata import from excel to Data grid view Pin
Isaac Gordon27-May-10 1:41
Isaac Gordon27-May-10 1:41 
AnswerRe: data import from excel to Data grid view Pin
Abhinav S27-May-10 2:51
Abhinav S27-May-10 2:51 
GeneralRe: data import from excel to Data grid view Pin
Isaac Gordon27-May-10 3:17
Isaac Gordon27-May-10 3:17 
AnswerRe: data import from excel to Data grid view Pin
Ramkithepower27-May-10 5:19
Ramkithepower27-May-10 5:19 
QuestionSoundEx in C# Pin
krishna_CP27-May-10 0:20
krishna_CP27-May-10 0:20 
AnswerRe: SoundEx in C# Pin
Pete O'Hanlon27-May-10 0:53
mvePete O'Hanlon27-May-10 0:53 
QuestionBarcode for & Sign....? Pin
NetMan201226-May-10 22:40
NetMan201226-May-10 22:40 
AnswerRe: Barcode for & Sign....? Pin
Eddy Vluggen26-May-10 22:45
professionalEddy Vluggen26-May-10 22:45 
AnswerRe: Barcode for & Sign....? Pin
OriginalGriff27-May-10 1:06
mveOriginalGriff27-May-10 1:06 
AnswerRe: Barcode for & Sign....? [modified] Pin
Luc Pattyn27-May-10 3:25
sitebuilderLuc Pattyn27-May-10 3:25 
QuestionMessage Removed Pin
26-May-10 22:13
jainiraj26-May-10 22:13 
AnswerRe: change look of controls in VS 2005 C# Pin
Johnny J.26-May-10 22:28
professionalJohnny J.26-May-10 22:28 
QuestionRestricting class creating only 3 objects Pin
Member 352189226-May-10 20:37
Member 352189226-May-10 20:37 
AnswerRe: Restricting class creating only 3 objects [modified] PinPopular
Jens Meyer26-May-10 21:11
Jens Meyer26-May-10 21:11 
GeneralRe: Restricting class creating only 3 objects Pin
Member 352189228-May-10 1:25
Member 352189228-May-10 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.