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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
You can read C# tutorial here:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320