Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to create function in c# ? Pin
Luc Pattyn22-May-09 6:03
sitebuilderLuc Pattyn22-May-09 6:03 
AnswerRe: how to create function in c# ? Pin
Dave Kreskowiak22-May-09 7:21
mveDave Kreskowiak22-May-09 7:21 
QuestionRe: how to create function in c# ? Pin
harold aptroot22-May-09 7:48
harold aptroot22-May-09 7:48 
QuestionHow to add an event handler for serial port timeout? Pin
thompsons22-May-09 5:37
thompsons22-May-09 5:37 
AnswerRe: How to add an event handler for serial port timeout? Pin
Luc Pattyn22-May-09 5:59
sitebuilderLuc Pattyn22-May-09 5:59 
GeneralRe: How to add an event handler for serial port timeout? Pin
thompsons22-May-09 7:00
thompsons22-May-09 7:00 
GeneralRe: How to add an event handler for serial port timeout? Pin
Dave Kreskowiak22-May-09 7:18
mveDave Kreskowiak22-May-09 7:18 
GeneralRe: How to add an event handler for serial port timeout? Pin
Luc Pattyn22-May-09 7:20
sitebuilderLuc Pattyn22-May-09 7:20 
So you want to get an event because data that you did not request did not arrive in time?

That is not how Windows (or any other OS I am aware of) works. You can get an event when something unexpected happens (e.g. DataReceived, ErrorReceived) or you can get an Exception when something you did order did not succeed for some reason.

If you are not satisfied by the DataReceived events (and I can imagine several scenarios where it is insufficient), then you must create your own thread and have that perform synchronous read operations, with or without timeout.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

AnswerRe: How to add an event handler for serial port timeout? Pin
Gideon Engelberth22-May-09 15:25
Gideon Engelberth22-May-09 15:25 
GeneralDifference between Menu and MenuStrip, etc Pin
Dan Neely22-May-09 4:14
Dan Neely22-May-09 4:14 
GeneralRe: Difference between Menu and MenuStrip, etc Pin
0x3c022-May-09 4:31
0x3c022-May-09 4:31 
GeneralRe: Difference between Menu and MenuStrip, etc Pin
S. Senthil Kumar22-May-09 4:42
S. Senthil Kumar22-May-09 4:42 
GeneralRe: Difference between Menu and MenuStrip, etc Pin
Dan Neely22-May-09 9:02
Dan Neely22-May-09 9:02 
QuestionWindows Media Player [modified] Pin
gmhanna22-May-09 4:07
gmhanna22-May-09 4:07 
AnswerRe: Windows Media Player Pin
OriginalGriff22-May-09 5:04
mveOriginalGriff22-May-09 5:04 
GeneralRe: Windows Media Player Pin
gmhanna22-May-09 8:18
gmhanna22-May-09 8:18 
GeneralRe: Windows Media Player Pin
OriginalGriff22-May-09 9:26
mveOriginalGriff22-May-09 9:26 
GeneralRe: Windows Media Player Pin
gmhanna22-May-09 10:44
gmhanna22-May-09 10:44 
QuestionEnumerating a class Pin
CodingYoshi22-May-09 3:52
CodingYoshi22-May-09 3:52 
AnswerRe: Enumerating a class Pin
PIEBALDconsult22-May-09 4:24
mvePIEBALDconsult22-May-09 4:24 
GeneralRe: Enumerating a class Pin
CodingYoshi22-May-09 4:44
CodingYoshi22-May-09 4:44 
QuestionComboBox not autoresizing on rebind of datasource Pin
Paul.B22-May-09 3:24
Paul.B22-May-09 3:24 
AnswerRe: ComboBox not autoresizing on rebind of datasource Pin
CodingYoshi22-May-09 3:58
CodingYoshi22-May-09 3:58 
GeneralRe: ComboBox not autoresizing on rebind of datasource Pin
Paul.B22-May-09 5:42
Paul.B22-May-09 5:42 
GeneralRe: ComboBox not autoresizing on rebind of datasource Pin
CodingYoshi22-May-09 8:07
CodingYoshi22-May-09 8:07 

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.