Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
GeneralRe: Image.FromFile question Pin
Mike Hankey26-Dec-07 17:07
mveMike Hankey26-Dec-07 17:07 
GeneralRe: Image.FromFile question Pin
Luc Pattyn27-Dec-07 5:06
sitebuilderLuc Pattyn27-Dec-07 5:06 
GeneralRe: Image.FromFile question Pin
Mike Hankey27-Dec-07 6:31
mveMike Hankey27-Dec-07 6:31 
Jokexxx cranium Pin
Luc Pattyn27-Dec-07 7:13
sitebuilderLuc Pattyn27-Dec-07 7:13 
GeneralRe: Image.FromFile question Pin
KaptinKrunch28-Dec-07 3:48
KaptinKrunch28-Dec-07 3:48 
GeneralRe: Image.FromFile question Pin
Mike Hankey28-Dec-07 4:02
mveMike Hankey28-Dec-07 4:02 
QuestionBinding DataGridView to a Collection. Pin
shehezada26-Dec-07 14:48
shehezada26-Dec-07 14:48 
General.NET serialPort dataReceived Event Help Pin
cmarcus197926-Dec-07 13:54
cmarcus197926-Dec-07 13:54 
I've got a .NET application where I need to receive data over the serial port.
I'm trying to receive data over the serial port that's of variable length and does not have an end line character.

I'm raising the dataReceived event like so:

void port_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
string data = rfswitch.ReadExisting();

MessageBox.Show(data);

}

However the event is being called twice with part of the data string in the first call and the remaining part in the second call.

How do I hold the dataReceived event from firing until the whole message has been received?

Thanks!
GeneralRe: .NET serialPort dataReceived Event Help Pin
Luc Pattyn26-Dec-07 16:34
sitebuilderLuc Pattyn26-Dec-07 16:34 
GeneralRe: .NET serialPort dataReceived Event Help Pin
cmarcus197926-Dec-07 17:00
cmarcus197926-Dec-07 17:00 
Questionhow can i protect my program's in c# Pin
E_Gold26-Dec-07 10:12
E_Gold26-Dec-07 10:12 
AnswerRe: how can i protect my program's in c# Pin
Not Active26-Dec-07 11:22
mentorNot Active26-Dec-07 11:22 
AnswerRe: how can i protect my program's in c# Pin
Paul Conrad26-Dec-07 11:51
professionalPaul Conrad26-Dec-07 11:51 
GeneralRe: how can i protect my program's in c# Pin
E_Gold27-Dec-07 0:16
E_Gold27-Dec-07 0:16 
GeneralRe: how can i protect my program's in c# Pin
Paul Conrad27-Dec-07 5:11
professionalPaul Conrad27-Dec-07 5:11 
QuestionUsing avg function for new constructed column? Pin
omegazafer26-Dec-07 10:10
omegazafer26-Dec-07 10:10 
AnswerRe: Using avg function for new constructed column? Pin
J$26-Dec-07 10:23
J$26-Dec-07 10:23 
GeneralRe: Using avg function for new constructed column? Pin
omegazafer26-Dec-07 11:07
omegazafer26-Dec-07 11:07 
GeneralRe: Using avg function for new constructed column? Pin
omegazafer26-Dec-07 11:19
omegazafer26-Dec-07 11:19 
GeneralCustomizing the property grid.. Pin
slipster21626-Dec-07 9:16
slipster21626-Dec-07 9:16 
GeneralImage surveillance Pin
diddy3426-Dec-07 8:12
diddy3426-Dec-07 8:12 
Generalcross-post Pin
Luc Pattyn26-Dec-07 8:30
sitebuilderLuc Pattyn26-Dec-07 8:30 
GeneralRe: Image surveillance Pin
KaptinKrunch26-Dec-07 8:36
KaptinKrunch26-Dec-07 8:36 
GeneralRe: Image surveillance Pin
Paul Conrad26-Dec-07 9:21
professionalPaul Conrad26-Dec-07 9:21 
Questiongetting Instance of opened form and control manipulation Pin
Adnan Siddiqi26-Dec-07 6:24
Adnan Siddiqi26-Dec-07 6:24 

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.