I have started to attempt to build a piece of code using VB which will use SerialPort to communicate with another pc connected via COM1 using hyperterminal.
So far I have no luck in attempting to compile my little VB form with the Serialport code inside, keep getting loads of errors.
What/where is the namespace required to allow serialport to be accessed, I have looked in System.IO but it doesen't have the .ports.SerialPort options available. I need to have something added to get this to work.
Help anyone

VS Express 2005, VB and SerialPort
oguime
Thanks guys, problem was I had the earlier .Net Framework 1.xxx version from VS Studio 2003 and not 2.xxx as is required to get access to SerialPort and components etc. So I couldn't get intellisense to list system.ports.io.SerialPort as an option. Thick or what
Ron Wright
Thanks .
I will chew on this and see if I can make heads or tales of it.
Jeremiorama
hi,
http://msdn2.microsoft.com/en-us/library/ms171728.aspx
http://msdn2.microsoft.com/en-us/library/30swa673(en-US,VS.80).aspx
http://www.codeproject.com/csharp/SerialCommunication.asp
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/vb05legacyhardware.asp
hope this helps
Jeff Agent
I joined the fourm to get the same info on serial ports.
I was able to drag it into the form but do not know how to write to text box or send the data to display into my text area.
I use hyper termainal now but want a custom App, to pull in Gifs and sub the ascii text.
Any Help
Thanks, PS: I am brand new to Visual Basic (all editions)
bieblsoft
meher666
Chancetribe
Lydon is correct, the System.IO.Ports.SerialPort class is defined in the System assembly.
If you want to use it on a form, you should be able to find it under the "Components" tab in the toolbox and drag it onto your form.
You can also use "My" to access serial ports:
My
.Computer.Ports.OpenSerialPortBest regards,
Johan Stenberg