Click here to Skip to main content
15,902,189 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: TextBox Control Pin
Guffa17-Mar-06 6:37
Guffa17-Mar-06 6:37 
GeneralRe: TextBox Control Pin
John L. DeVito17-Mar-06 7:18
professionalJohn L. DeVito17-Mar-06 7:18 
AnswerRe: TextBox Control Pin
Office Lineman17-Mar-06 7:19
Office Lineman17-Mar-06 7:19 
AnswerRe: TextBox Control Pin
HimaBindu Vejella19-Mar-06 23:47
HimaBindu Vejella19-Mar-06 23:47 
QuestionDetect and ignore missing COM, dll, library Pin
sgub16-Mar-06 15:22
sgub16-Mar-06 15:22 
Questionsql ce Pin
sunny74716-Mar-06 9:35
sunny74716-Mar-06 9:35 
AnswerRe: sql ce Pin
Mike Dimmick18-Mar-06 11:01
Mike Dimmick18-Mar-06 11:01 
QuestionReading in data from GPS(serial Port) Pin
prashantkgupta16-Mar-06 8:59
prashantkgupta16-Mar-06 8:59 
Hello all,

I am trying to create a Smart Mobile/GPS application using .Net 2003 framework. In addition for the GPS support I am using OpenNETCF SDK 1.4 library. I am having problems reading in data from the GPS . The following is my code snippet:

private void button1_Click(object sender, System.EventArgs e)
{
gps.BaudRate = OpenNETCF.IO.Serial.BaudRates.CBR_9600;
gps.ComPort = "COM1:";
textBox1.Text = gps.ToString() + "\n";
gps.GpsSentence += new OpenNETCF.IO.Serial.GPS.GPS.GpsSentenceEventHandler(gps_GpsSentence);
gps.GpsCommState += new OpenNETCF.IO.Serial.GPS.GPS.GpsCommStateEventHandler(gps_GpsCommState);


gps.Start();

}

private void gps_GpsSentence(object sender,GpsSentenceEventArgs e)
{
MessageBox.Show("calling");
textBox1.Text += "calling" ;
textBox1.Text += e.Sentence + " ";

}

private void gps_GpsCommState(object sender,GpsCommStateEventArgs e)
{
switch(e.State)
{
case OpenNETCF.IO.Serial.GPS.States.Running:
textBox1.Text += "GPS Started";
break;
case OpenNETCF.IO.Serial.GPS.States.Stopped:
textBox1.Text += "GPS Stop";
break;

}
}

When I run the code using a pocket PC emulator , the code fires gps_GpsCommState event (it always shows the message GPS started even when its not connected) , and more importantly it does not fire the gps_GpsSentence event ever. What is the problem?? Could anyone help me out with this. I would be greatly obliged. If you of any other way to read in data pls lemme know. Also let me know what is the problem with the code.



QuestionProblem Publishing with Visual Studio 2005 Pin
kayhustle16-Mar-06 8:56
kayhustle16-Mar-06 8:56 
QuestionIP Cameras Pin
programmingfish15-Mar-06 20:54
programmingfish15-Mar-06 20:54 
AnswerRe: IP Cameras Pin
xlthim15-May-07 9:52
xlthim15-May-07 9:52 
QuestionClicking *Through* a Form? Pin
TheZeusJuice15-Mar-06 16:38
TheZeusJuice15-Mar-06 16:38 
AnswerRe: Clicking *Through* a Form? Pin
Dave Kreskowiak15-Mar-06 17:35
mveDave Kreskowiak15-Mar-06 17:35 
GeneralRe: Clicking *Through* a Form? Pin
TheZeusJuice15-Mar-06 17:48
TheZeusJuice15-Mar-06 17:48 
GeneralRe: Clicking *Through* a Form? Pin
Dave Kreskowiak16-Mar-06 2:35
mveDave Kreskowiak16-Mar-06 2:35 
QuestionFree RAM as by minimize without displaying window Pin
mewashere15-Mar-06 11:57
mewashere15-Mar-06 11:57 
AnswerRe: Free RAM as by minimize without displaying window Pin
Glaxalg15-Mar-06 17:35
Glaxalg15-Mar-06 17:35 
AnswerRe: Free RAM as by minimize without displaying window Pin
Robert Rohde15-Mar-06 17:41
Robert Rohde15-Mar-06 17:41 
GeneralRe: Free RAM as by minimize without displaying window Pin
mewashere16-Mar-06 3:03
mewashere16-Mar-06 3:03 
GeneralRe: Free RAM as by minimize without displaying window Pin
Dave Kreskowiak16-Mar-06 15:11
mveDave Kreskowiak16-Mar-06 15:11 
QuestionPPTP through code Pin
xibalbasd15-Mar-06 10:24
xibalbasd15-Mar-06 10:24 
QuestionWhere to start? Pin
ComplexLifeForm15-Mar-06 5:43
ComplexLifeForm15-Mar-06 5:43 
AnswerRe: Where to start? Pin
TheZeusJuice15-Mar-06 17:27
TheZeusJuice15-Mar-06 17:27 
GeneralRe: Where to start? Pin
ComplexLifeForm15-Mar-06 21:27
ComplexLifeForm15-Mar-06 21:27 
GeneralRe: Where to start? Pin
TheZeusJuice16-Mar-06 4:54
TheZeusJuice16-Mar-06 4:54 

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.