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

C#

 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 10:53
jxfdasilva17-Dec-13 10:53 
GeneralRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 11:23
professionalBillWoodruff17-Dec-13 11:23 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 13:21
jxfdasilva17-Dec-13 13:21 
GeneralRe: Stuck on delegates / events Pin
Freak3017-Dec-13 23:17
Freak3017-Dec-13 23:17 
AnswerRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 11:40
professionalBillWoodruff17-Dec-13 11:40 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 12:23
jxfdasilva17-Dec-13 12:23 
GeneralRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 13:10
professionalBillWoodruff17-Dec-13 13:10 
AnswerRe: Stuck on delegates / events Pin
V.17-Dec-13 22:37
professionalV.17-Dec-13 22:37 
From what I understand of your post:
You have 2 forms each doing some seperate work with the NmeaInterpreter? I'm curious how that would work based on your code in the post. You just create a new NmeaInterpreter instance and hook up an event. (I assume by now you are using += to hook the event up) Don't you need to define some properties of the receiver (port, type, ...) should the class be "started" (just like a timer object needs the "Start" call to actually launch).

In case you do have 2 seperate forms each doing some part of the work, take out the NmeaInterpreter in another class and pass along the data from that class. You can use new delegates/events for that, and it keeps your send/receive logic in one place, which makes more sense.

I have never seen this construct:
C#
TestBox.Text latitude.ToString = ();

And I'm not sure why you'ld call the ToString on latitude other than a creating a good chance in an exception being thrown.
What's wrong with
C#
TestBox.Text = latitude;
?


hope this helps.

GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 22:53
jxfdasilva17-Dec-13 22:53 
GeneralRe: Stuck on delegates / events Pin
V.17-Dec-13 23:09
professionalV.17-Dec-13 23:09 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva18-Dec-13 0:51
jxfdasilva18-Dec-13 0:51 
AnswerRe: Stuck on delegates / events Pin
jxfdasilva18-Dec-13 9:10
jxfdasilva18-Dec-13 9:10 
Questionmenu strip in right side Pin
An@nd Rajan1016-Dec-13 20:14
professionalAn@nd Rajan1016-Dec-13 20:14 
AnswerRe: menu strip in right side Pin
Mycroft Holmes16-Dec-13 20:56
professionalMycroft Holmes16-Dec-13 20:56 
GeneralRe: menu strip in right side Pin
An@nd Rajan1016-Dec-13 21:01
professionalAn@nd Rajan1016-Dec-13 21:01 
AnswerRe: menu strip in right side Pin
lukeer16-Dec-13 21:19
lukeer16-Dec-13 21:19 
AnswerRe: menu strip in right side Pin
HobbyProggy17-Dec-13 4:59
professionalHobbyProggy17-Dec-13 4:59 
QuestionDesign pattern Pin
jeenamary16-Dec-13 19:33
jeenamary16-Dec-13 19:33 
JokeRe: Design pattern Pin
Mycroft Holmes16-Dec-13 20:54
professionalMycroft Holmes16-Dec-13 20:54 
AnswerRe: Design pattern Pin
Marco Bertschi17-Dec-13 0:09
protectorMarco Bertschi17-Dec-13 0:09 
AnswerRe: Design pattern Pin
BobJanova17-Dec-13 1:35
BobJanova17-Dec-13 1:35 
AnswerRe: Design pattern Pin
PIEBALDconsult17-Dec-13 3:18
mvePIEBALDconsult17-Dec-13 3:18 
AnswerRe: Design pattern Pin
Abhinav S17-Dec-13 6:25
Abhinav S17-Dec-13 6:25 
QuestionMulticast delegate vs binding Pin
Jörgen Andersson16-Dec-13 5:01
professionalJörgen Andersson16-Dec-13 5:01 
AnswerRe: Multicast delegate vs binding Pin
Abhinav S16-Dec-13 16:06
Abhinav S16-Dec-13 16:06 

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.