VB.NET open Com port

The solution for “VB.NET open Com port” can be found here. The following code will assist you in solving the problem.

Sub SendSerialData(ByVal data As String)
‘ Send strings to a serial port.
Using com1 As IO.Ports.SerialPort =
My.Computer.Ports.OpenSerialPort(“COM1”)
com1.WriteLine(data)
End Using
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts