Link to home
Start Free TrialLog in
Avatar of nicolas30
nicolas30

asked on

Read & Write to serial port in VB.NET?

How do I setup, read and write to the serial port in VB.NET?  

Pls. attach a link to example or documentation.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mohammed Nasman
Mohammed Nasman
Flag of Palestine, State of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I don't know if this is still supported, but it worked in QuickBasic and all previous versions of VB:

Open "COM1:" for input as #1
if not eof(1) then
  line input #1, strFirstLine
endif
if not eof(1) then
  line input #1, strSecondLine
end if
close #1