• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 741
  • Last Modified:

VB.NET read from COM port?

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.

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


P0rG1Author Commented:
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?


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now