Try If SerialPort1.IsOpen Then Label11.Text = (SerialPort1.Write("AT+CGMI")) Else MsgBox("Sorry ! there is some error in your computer port") End If Catch ex As Exception MsgBox(ex.Message) End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)