473,324 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

How to access serial ports in VB .NET 2003 ?

I have just upgraded my computer to Windows XP and Visual Studio .NET
2003 from Windows 2000 and VB 6. I have been looking around VB .NET and
can't seem to find the MSCOMM componet. Has the method to access the
serial ports in VB .NET changed ? I have read that you can use VB 6 COM
objects in VB .NET but I was hoping that Microsoft had a .NET solution
for accessing the serial ports.

Also is there a good reference on how to communicate with USB devices ?

Thanks for you help.

John
Nov 21 '05 #1
2 3731
Hi,

In the vb.net resource kit there is the free sax.net community
edition control. It supports sending and recieving from serial ports.
Maybe that will help.

http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

Ken
-----------------------------
"John" <Jo**@none.com> wrote in message
news:MP************************@netnews.comcast.ne t...
I have just upgraded my computer to Windows XP and Visual Studio .NET
2003 from Windows 2000 and VB 6. I have been looking around VB .NET and
can't seem to find the MSCOMM componet. Has the method to access the
serial ports in VB .NET changed ? I have read that you can use VB 6 COM
objects in VB .NET but I was hoping that Microsoft had a .NET solution
for accessing the serial ports.

Also is there a good reference on how to communicate with USB devices ?

Thanks for you help.

John
Nov 21 '05 #2
"John" <Jo**@none.com> schrieb:
Has the method to access the serial ports in VB .NET changed ?


Thomas Scheidegger's Serial Port FAQ (in German)
<URL:http://groups.google.com/groups?selm=O2UyhTLvDHA.1680%40TK2MSFTNGP12.phx.gb l>

..NET 2.0 will provide support for accessing the serial port:

'SerialPort' Class
<URL:http://longhorn.msdn.microsoft.com/lhsdk/ref/ns/system.io.ports/c/serialport/serialport.aspx>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
6
by: agnivesh | last post by:
Hi there, I'm a beginner in C programming and want to learn how to write C (pure C) code to access hardware ports (serial,parallel,usb etc.) under windows environment ? 1. Please, suggest any...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
1
by: David | last post by:
I have written an application in VB.NET 2003 that uses the SAX serial component for RS232 communications with hardware. The program sets up 2 serial ports so that it can talk to 2 different...
1
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
5
by: Lee | last post by:
I am getting this error trying to run a win forms .net app using the .net 2.0 serial port control. This occurs when the app tries to open the port. I knwo this is some type of security access...
0
by: Stephan Rose | last post by:
Anyone have any experience working with USB->Serial adapters?? Yes, some of us, like me, still need Serial ports!!! Drives me nuts that it is almost impossible to still get a high end motherboard...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
2
by: Mihai Popescu | last post by:
I wrote a simple application in MFC that uses MSComm ActiveX Control for serial communication. This app works just fine but I have to port it to Pocket PC. So, I wrote another simple application in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.