2
votes

I am converting a VB6 application to a VB.net application. I have been able to convert all of the code properly other than lines calling the MSComm.CommPort property. I cannot find an equivalent to this property anywhere.

All of information I have found on converting from VB6 to VB.NET provides a code example like this, but it never explain where the MSComm.CommPort control is dealt with.

If anyone can tell me the VB.NET Comm Port class equivalent, or point me in the direction of a proper explanation, it would be greatly appreciated.

1
So you are replacing it with a SerialPort component? Use .PortNameAlex K.
Yeah, sorry I didn't clarify. ThanksJuiCe
Provides a property and a method for accessing the computer's serial ports. Remarks The My.Computer.Ports object provides a straightforward entry point for accessing the .NET Framework serial port class, SerialPort. Tasksphd443322

1 Answers