473,672 Members | 2,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3746
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.co m> wrote in message
news:MP******** *************** *@netnews.comca st.net...
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.co m> 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.c om/groups?selm=O2U yhTLvDHA.1680%4 0TK2MSFTNGP12.p hx.gbl>

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

'SerialPort' Class
<URL:http://longhorn.msdn.m icrosoft.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
13177
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. However, I'm unsure of how exactly I should be designing the program, I thought I could use threading to start class: class scanner(Thread): def __init__(self,port):
6
10934
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 online tutorials or free ebooks etc. for that. 2. Is it possible to do above tasks using MingW Developer Studio, GTK+ etc. ? I've just downloaded these tools and want to make sure before
13
4816
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 been told it is not possible to access the serial ports from asp.net. The application is used to control custom hardware. The hardware is connected to a PC through serial ports. Our customer wants to control the hardware from a remote...
1
1756
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 hardware devices simultaneaously. When I run the program on a desktop running Windows 2000 it works fine. When I run it on a Laptop using XP I start having problems. It seems that when the ports are initiated, either one will work but not the
1
10912
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 errors 2) My Nokia 6600 prompted me the message "Accept Connection request from DEMON?" note: DEMON is my computers name. 3) Using my Nokia 6600, I hit the button that refers to the "Yes"
5
55757
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 problem but I have no clue where to fix it. Help....
0
1531
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 these days that has a built in serial port... I just found out yesterday though, using my serial boot loader for my embedded work, that it didn't want to talk to my development board. My boot loader is nothing more than small console C# app...
2
3953
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 development computer I don't have ay problem with my application.
2
3366
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 C# for Pocket PC now using a System.IO.Ports.SerialPort object with the same communication parameters as the former: 19200,n,8,1 and on COM4. The problem is that the latter app generates an IO exception System.IO.FileNotFoundException cause...
0
8418
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8940
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8694
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7458
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4237
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4434
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2833
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2084
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.