Link to home
Start Free TrialLog in
Avatar of P0rG1
P0rG1

asked on

VB.NET read from COM port?

Hi,
My problem is that I need to read in a stream of ASCII code from the COM port (really a PC CARD II - slot on a PDA where a GPS card is connected) using VB.NET.

Now, my question is:
How would I go about doing this?

Are there any controls in VB.NET that can achieve this?

Can I use some sort of File I/O syntax for example FileRead(COM3...) with the COM port? If so what is the syntax?

Where could I find info on this?

As I'm new to VB I hope my rambling makes some sense.

/P0rG1
Avatar of AlexFM
AlexFM

There is such control - MSComm.
You can read C# tutorial here:

http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320

ASKER CERTIFIED SOLUTION
Avatar of Mohammed Nasman
Mohammed Nasman
Flag of Palestine, State of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of P0rG1

ASKER

Hi,
thanx for your answers. As it seems there is no built in control for serial communications in VB.NET, I was thinking of writing a C# component and use it with my VB.NET program. Would this be a painless way to go around using the MSComm.ocx file from VB?
If not do you know if the MSComm works with Windows CE?

/P0rG1