SerialPort conversion from vb6

PedroA

Active member
Joined
Oct 14, 2013
Messages
26
Programming Experience
Beginner
Hi,

I'm converting a VB6 program to VB.net.

What is the equivalent of,
MSComm4.InputLen = 0

in VB.net?

Thanks for any help.
 
There is no equivalent. If you want to interact with a serial port in VB.NET then you should use the SerialPort class, which is quite different to MSComm. You should learn how to use the SerialPort class and then write the most appropriate code to implement the functionality you want. The code you had in VB6 with MSComm is irrelevant.
 
Back
Top