P
Piet Doms
Hello All,
Very new in C# for CF, How can I access variable in Form1 for use in Form2
My code so far :
Form1
public GPSReader _gpsReader ; // I use the GPSReader from JW Hedgehog
public string _strGPS_Lat ;
public string _strGPS_Long ;
public GPSReader getGPSReader
{
get { return _gpsReader ;}
}
Form2
public GPSReader myGpsReciever;
public void DoSomething(frmMain anotherForm)
{
myGpsReciever = anotherForm.getGPSReader
}
How do I call the DoSomething in Form2 ??
I'm not sure this code is working because I cannot call DoSomething
Anybody ideas or better ways to get this going ?
Thanks,
Piet
Very new in C# for CF, How can I access variable in Form1 for use in Form2
My code so far :
Form1
public GPSReader _gpsReader ; // I use the GPSReader from JW Hedgehog
public string _strGPS_Lat ;
public string _strGPS_Long ;
public GPSReader getGPSReader
{
get { return _gpsReader ;}
}
Form2
public GPSReader myGpsReciever;
public void DoSomething(frmMain anotherForm)
{
myGpsReciever = anotherForm.getGPSReader
}
How do I call the DoSomething in Form2 ??
I'm not sure this code is working because I cannot call DoSomething
Anybody ideas or better ways to get this going ?
Thanks,
Piet