Click here to Skip to main content
15,888,257 members
Home / Discussions / C#
   

C#

 
GeneralRe: Message Handling...... Pin
vishal moharikar29-May-09 0:21
vishal moharikar29-May-09 0:21 
GeneralRe: Message Handling...... Pin
0x3c029-May-09 0:23
0x3c029-May-09 0:23 
AnswerRe: Message Handling...... Pin
0x3c029-May-09 0:26
0x3c029-May-09 0:26 
AnswerRe: Message Handling...... Pin
Rob Philpott29-May-09 0:30
Rob Philpott29-May-09 0:30 
GeneralRe: Message Handling...... Pin
Rob Philpott29-May-09 0:35
Rob Philpott29-May-09 0:35 
GeneralRe: Message Handling...... Pin
vishal moharikar29-May-09 0:48
vishal moharikar29-May-09 0:48 
GeneralRe: Message Handling...... Pin
Rajesh R Subramanian29-May-09 1:27
professionalRajesh R Subramanian29-May-09 1:27 
GeneralRe: Message Handling...... Pin
Rob Philpott29-May-09 3:14
Rob Philpott29-May-09 3:14 
I'm really not sure I can offer much help as I don't fully understand what you're trying to do.

SendMessage sends a message (of WM_ form) to a WndProc (every Window has one) with an LPARAM and a WPARAM, and its been this way since the dawn of time.

As I suggested before, derive something from Control and place it on a form. Provide an override to the WndProc and check the Message parameter for whatever message it is you want. (Something like WM_KEYDOWN, WM_KEYPRESS etc.)

You'll then need to configure the sending application to send the messages to that window.

As I said before I'm doubtful whether one process can send messages to the WndProc of another process.

Spy++ is a useful tool for finding the names and classes of windows and watching what messages are being sent.

Regards,
Rob Philpott.

AnswerRe: Message Handling...... Pin
mark_ian1-Jun-09 4:57
mark_ian1-Jun-09 4:57 
QuestionCombobox Pin
yesu prakash29-May-09 0:03
yesu prakash29-May-09 0:03 
AnswerRe: Combobox Pin
stancrm29-May-09 0:06
stancrm29-May-09 0:06 
AnswerRe: Combobox Pin
Ravi Mori29-May-09 0:08
Ravi Mori29-May-09 0:08 
AnswerRe: Combobox Pin
AhsanS29-May-09 0:15
AhsanS29-May-09 0:15 
GeneralRe: Combobox Pin
xingselex29-May-09 0:42
xingselex29-May-09 0:42 
GeneralRe: Combobox Pin
Satish Pai29-May-09 1:51
Satish Pai29-May-09 1:51 
GeneralRe: Combobox Pin
Satish Pai29-May-09 1:38
Satish Pai29-May-09 1:38 
GeneralRe: Combobox Pin
xingselex29-May-09 6:27
xingselex29-May-09 6:27 
GeneralRe: Combobox Pin
Satish Pai29-May-09 18:05
Satish Pai29-May-09 18:05 
GeneralRe: Combobox Pin
xingselex29-May-09 19:12
xingselex29-May-09 19:12 
GeneralRe: Combobox Pin
Satish Pai29-May-09 19:14
Satish Pai29-May-09 19:14 
QuestionChnage backgrounf color of a form Pin
VC_RYK28-May-09 21:42
VC_RYK28-May-09 21:42 
AnswerRe: Chnage backgrounf color of a form Pin
dan!sh 28-May-09 21:52
professional dan!sh 28-May-09 21:52 
AnswerRe: Chnage backgrounf color of a form Pin
stancrm28-May-09 21:56
stancrm28-May-09 21:56 
GeneralRe: Chnage backgrounf color of a form Pin
VC_RYK28-May-09 22:01
VC_RYK28-May-09 22:01 
GeneralRe: Chnage backgrounf color of a form Pin
pampam11028-May-09 22:09
pampam11028-May-09 22:09 

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.