Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
AnswerRe: Phone caller Pin
Nader Elshehabi27-Sep-06 10:41
Nader Elshehabi27-Sep-06 10:41 
GeneralRe: Phone caller Pin
HojatAlizadehfard28-Sep-06 7:36
HojatAlizadehfard28-Sep-06 7:36 
GeneralRe: Phone caller Pin
Nader Elshehabi28-Sep-06 8:02
Nader Elshehabi28-Sep-06 8:02 
GeneralRe: Phone caller Pin
HojatAlizadehfard28-Sep-06 9:30
HojatAlizadehfard28-Sep-06 9:30 
GeneralRe: Phone caller Pin
Nader Elshehabi28-Sep-06 9:42
Nader Elshehabi28-Sep-06 9:42 
QuestionRe: Phone caller Pin
HojatAlizadehfard1-Oct-06 1:20
HojatAlizadehfard1-Oct-06 1:20 
AnswerRe: Phone caller Pin
Nader Elshehabi1-Oct-06 4:22
Nader Elshehabi1-Oct-06 4:22 
QuestionQuestion about messaging in C# Pin
Jethro6325-Sep-06 7:00
Jethro6325-Sep-06 7:00 
Greetings:

What is the accepted method used for forms and/or background processes to communication with one another asynchronously under C#.

For example, I have written my share of Windows apps under C++ and MFC that involve handling serial ports, USB ports or other such external sources. My usual approach is to monitor the port with a worker thread for incoming data. I might have a display window in the application that simply waits for incoming messages which can come in at any time without prompting. I usually create some sort of messaging structure and pass messages from the monitoring thread to the window using PostMessage. For those not familiar, PostMessage simply puts the message into the message queue and does NOT wait for a response or any indication that the message was received. This is in contrast to SendMessage, which waits for the message to be handled and is therefore not much different from calling the handler directly.

So I am looking for a means to do something similar under C# and .NET.

How is this accomplished in general?

Thank you in advance to anyone who responds.
Mark
AnswerRe: Question about messaging in C# Pin
led mike25-Sep-06 7:44
led mike25-Sep-06 7:44 
AnswerRe: Question about messaging in C# Pin
Nader Elshehabi25-Sep-06 7:59
Nader Elshehabi25-Sep-06 7:59 
GeneralRe: Question about messaging in C# Pin
Jethro6325-Sep-06 8:13
Jethro6325-Sep-06 8:13 
GeneralRe: Question about messaging in C# Pin
Nader Elshehabi25-Sep-06 10:42
Nader Elshehabi25-Sep-06 10:42 
GeneralRe: Question about messaging in C# Pin
Jethro6325-Sep-06 16:20
Jethro6325-Sep-06 16:20 
QuestionProblem with SmtpClient Pin
Hmitosh25-Sep-06 6:36
Hmitosh25-Sep-06 6:36 
AnswerRe: Problem with SmtpClient Pin
led mike25-Sep-06 7:45
led mike25-Sep-06 7:45 
AnswerRe: Problem with SmtpClient Pin
Nadia Monalisa25-Sep-06 10:15
Nadia Monalisa25-Sep-06 10:15 
Questionchoosing appropriate data type Pin
biaali25-Sep-06 6:24
biaali25-Sep-06 6:24 
AnswerRe: choosing appropriate data type Pin
Jon Sagara25-Sep-06 6:33
Jon Sagara25-Sep-06 6:33 
GeneralRe: choosing appropriate data type Pin
biaali25-Sep-06 6:36
biaali25-Sep-06 6:36 
GeneralRe: choosing appropriate data type Pin
Jon Sagara25-Sep-06 6:44
Jon Sagara25-Sep-06 6:44 
GeneralRe: choosing appropriate data type Pin
biaali25-Sep-06 6:46
biaali25-Sep-06 6:46 
QuestionThreading in C# Pin
Omkar Ghaisas25-Sep-06 6:13
Omkar Ghaisas25-Sep-06 6:13 
AnswerRe: Threading in C# Pin
Nader Elshehabi25-Sep-06 6:48
Nader Elshehabi25-Sep-06 6:48 
QuestionHow to Open popup window in Mozilla firefox Pin
eswarattaluri25-Sep-06 5:26
eswarattaluri25-Sep-06 5:26 
AnswerRe: How to Open popup window in Mozilla firefox Pin
Nader Elshehabi25-Sep-06 6:46
Nader Elshehabi25-Sep-06 6:46 

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.