Hi,

I've used a sample code to create an RS232 connection in my application.

My problem is with this line:
m_CommPort.Write(Encoding.ASCII.GetBytes(Me.cbGPSSentence.Text & Chr(13)))

The Encoding (underlined) is coming up as undeclared. I know where the namespace is, but not too sure how to declare it?

It works fine without any visible declaration in the original app.

Any pointers?

Thanks