Click here to Skip to main content
15,888,454 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 
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 
If you want a Form you create to have access to, and be able to use, an instance of a Class created outside the Form, you must take action to give the created Form a valid reference to the instance of the Class.

There are several ways to do that; here's an example of one way:

In the Form(s) you create define a Public Property that will hold a valid reference to the NMEA Class:

// in created Forms

// enable access
using NmeaInterpreter;

// to hold reference to instance of NmeaInterpreter
Public NmeaInterpreter theNMEAInterpreter { get; set; }

In the Form that creates the instance of the NmeaInterpreter, at the point where you have a valid reference to an instance of the NmeaInterpreter called 'myInterpreter, and you create the new Form:

// rough sketch of code

NMEAUsingForm newNMEAUsingForm = new NMEAUsingForm();

// insert the reference to the instance of NmeaInterpreter

newNMEAUsingForm.theNMEAInterpreter = myInterpreter;

At this point any method in the created Form(s) can access, and use, the instance of the NmeaInterpreter.
If you seek to aid everyone that suffers in the galaxy, you will only weaken yourself … and weaken them. It is the internal struggles, when fought and won on their own, that yield the strongest rewards… If you care for others, then dispense with pity and sacrifice and recognize the value in letting them fight their own battles." Darth Traya

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.