Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to show event of a user control in property window Pin
Simon P Stevens17-Sep-08 23:30
Simon P Stevens17-Sep-08 23:30 
QuestionTrouble with Invocation, serial port Pin
introuble217-Sep-08 22:41
introuble217-Sep-08 22:41 
AnswerRe: Trouble with Invocation, serial port Pin
leppie17-Sep-08 22:51
leppie17-Sep-08 22:51 
GeneralRe: Trouble with Invocation, serial port Pin
introuble218-Sep-08 0:31
introuble218-Sep-08 0:31 
GeneralRe: Trouble with Invocation, serial port Pin
leppie18-Sep-08 0:35
leppie18-Sep-08 0:35 
GeneralRe: Trouble with Invocation, serial port Pin
introuble218-Sep-08 1:49
introuble218-Sep-08 1:49 
GeneralRe: Trouble with Invocation, serial port Pin
leppie18-Sep-08 3:14
leppie18-Sep-08 3:14 
AnswerRe: Trouble with Invocation, serial port Pin
Alan N18-Sep-08 1:46
Alan N18-Sep-08 1:46 
Hi,
I think the problem is that your are opening your serial port before the form has been created.

Move the following code into the forms Load event handler and I think you'll be ok.

sp = new System.IO.Ports.SerialPort();
sp.PortName = "COM5";
sp.BaudRate = 19200;
sp.Parity = Parity.None;
sp.DataBits = 8;
sp.StopBits = StopBits.One;
sp.ReadTimeout = 5000;
sp.Open();
sp.DataReceived += new SerialDataReceivedEventHandler(sp_DataReceived);


Alan.
GeneralRe: Trouble with Invocation, serial port Pin
introuble218-Sep-08 2:07
introuble218-Sep-08 2:07 
GeneralRe: Trouble with Invocation, serial port Pin
Searril18-Sep-08 9:01
Searril18-Sep-08 9:01 
GeneralRe: Trouble with Invocation, serial port Pin
introuble219-Sep-08 2:02
introuble219-Sep-08 2:02 
GeneralRe: Trouble with Invocation, serial port Pin
Searril19-Sep-08 10:14
Searril19-Sep-08 10:14 
QuestionUser searchbox and RegEx best-practice Pin
ArneKruger17-Sep-08 21:56
ArneKruger17-Sep-08 21:56 
AnswerRe: User searchbox and RegEx best-practice Pin
leppie17-Sep-08 22:27
leppie17-Sep-08 22:27 
GeneralRe: User searchbox and RegEx best-practice Pin
ArneKruger17-Sep-08 23:37
ArneKruger17-Sep-08 23:37 
QuestionProper use of Tag property Pin
Mycroft Holmes17-Sep-08 21:47
professionalMycroft Holmes17-Sep-08 21:47 
AnswerRe: Proper use of Tag property Pin
N a v a n e e t h17-Sep-08 21:55
N a v a n e e t h17-Sep-08 21:55 
GeneralRe: Proper use of Tag property Pin
Mycroft Holmes17-Sep-08 22:08
professionalMycroft Holmes17-Sep-08 22:08 
AnswerRe: Proper use of Tag property Pin
Pete O'Hanlon17-Sep-08 21:58
mvePete O'Hanlon17-Sep-08 21:58 
GeneralRe: Proper use of Tag property Pin
Mycroft Holmes17-Sep-08 22:00
professionalMycroft Holmes17-Sep-08 22:00 
GeneralRe: Proper use of Tag property Pin
N a v a n e e t h17-Sep-08 22:03
N a v a n e e t h17-Sep-08 22:03 
GeneralRe: Proper use of Tag property Pin
Pete O'Hanlon17-Sep-08 22:32
mvePete O'Hanlon17-Sep-08 22:32 
GeneralRe: Proper use of Tag property Pin
N a v a n e e t h17-Sep-08 23:50
N a v a n e e t h17-Sep-08 23:50 
Questionauthentication issue Pin
George_George17-Sep-08 21:40
George_George17-Sep-08 21:40 
AnswerRe: authentication issue Pin
leppie17-Sep-08 22:21
leppie17-Sep-08 22:21 

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.