Click here to Skip to main content
15,881,204 members
Home / Discussions / C#
   

C#

 
AnswerRe: Read comma delimited .txt file with large number of data - do search in column A Pin
BillWoodruff18-Dec-13 11:18
professionalBillWoodruff18-Dec-13 11:18 
GeneralRe: Read comma delimited .txt file with large number of data - do search in column A Pin
lordoftrades18-Dec-13 11:22
lordoftrades18-Dec-13 11:22 
QuestionZoom in and Zoom out feature in a picturebox Pin
alfie.max1518-Dec-13 0:00
alfie.max1518-Dec-13 0:00 
AnswerRe: Zoom in and Zoom out feature in a picturebox Pin
Richard MacCutchan18-Dec-13 1:22
mveRichard MacCutchan18-Dec-13 1:22 
AnswerRe: Zoom in and Zoom out feature in a picturebox Pin
JV999918-Dec-13 1:22
professionalJV999918-Dec-13 1:22 
AnswerRe: Zoom in and Zoom out feature in a picturebox Pin
Snehasish_Nandy18-Dec-13 1:41
professionalSnehasish_Nandy18-Dec-13 1:41 
AnswerRe: Zoom in and Zoom out feature in a picturebox Pin
BillWoodruff18-Dec-13 3:25
professionalBillWoodruff18-Dec-13 3:25 
QuestionStuck on delegates / events Pin
Member 1036998617-Dec-13 6:19
Member 1036998617-Dec-13 6:19 
I'm stuck on a problem and would like your help. I have a class - “public class NmeaInterpreter” well known and written by Jon Person - , where it is sent and receive events through delegates / events:

/ / **********
C#
public class NmeaInterpreter

public delegate void PositionReceivedEventHandler (string latitude, string longitude);
....
....

PositionReceivedEventHandler PositionReceived public event;
....
...


/ / ************

I have two more Forms( ) :

Form 2 ( ) - where I set the serial port, and sending the sentences received by GPS.

Form 1 ( ) - generally where I analyze and get the values and step formatted for a TextBox.


Although the Form1 ( ) deal with events :

/ / ****

C#
NmeaInterpreter GPS NmeaInterpreter = new ( ) ;

public Form1 ( )
        {
            InitializeComponent ( ) ;
            GPS.PositionReceived = new NmeaInterpreter.PositionReceivedEventHandler ( GPS_PositionReceived ) ;

      }
private void GPS_PositionReceived (string latitude, string longitude )
       {
         TestBox.Text latitude.ToString = ();
       }

/ / **************

- I cannot read or have no value in Textboxes ! Any idea?

When I debug step by step, just noticed that it ignores the methods created ...

Another thing is that if I have only one Form( ), where I treat the events and do the settings of the serial ports , it works ... but if I want to pass the data / strings from “class NmeaInterpreter” and show to another Form ( ) , does not work ! Where is the error?


Thanks for the support


Jose
AnswerRe: Stuck on delegates / events Pin
Pete O'Hanlon17-Dec-13 6:38
mvePete O'Hanlon17-Dec-13 6:38 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 6:54
jxfdasilva17-Dec-13 6:54 
GeneralRe: Stuck on delegates / events Pin
Pete O'Hanlon17-Dec-13 6:59
mvePete O'Hanlon17-Dec-13 6:59 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 7:07
jxfdasilva17-Dec-13 7:07 
GeneralRe: Stuck on delegates / events Pin
Pete O'Hanlon17-Dec-13 7:33
mvePete O'Hanlon17-Dec-13 7:33 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 7:42
jxfdasilva17-Dec-13 7:42 
GeneralRe: Stuck on delegates / events Pin
Pete O'Hanlon17-Dec-13 7:50
mvePete O'Hanlon17-Dec-13 7:50 
GeneralRe: Stuck on delegates / events Pin
Pete O'Hanlon17-Dec-13 7:54
mvePete O'Hanlon17-Dec-13 7:54 
GeneralRe: Stuck on delegates / events Pin
Richard Deeming17-Dec-13 8:28
mveRichard Deeming17-Dec-13 8:28 
GeneralRe: Stuck on delegates / events Pin
jxfdasilva17-Dec-13 8:28
jxfdasilva17-Dec-13 8:28 
AnswerRe: Stuck on delegates / events Pin
BillWoodruff17-Dec-13 9:52
professionalBillWoodruff17-Dec-13 9:52 
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 

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.