?
Solved

VB.NET read from COM port?

Posted on 2003-02-26
3
Medium Priority
?
737 Views
Last Modified: 2013-11-25
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
0
Comment
Question by:P0rG1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 8024040
There is such control - MSComm.
You can read C# tutorial here:

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

0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 200 total points
ID: 8024215
0
 

Author Comment

by:P0rG1
ID: 8031542
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
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question