Etape 5: Connexion bouton
Nous allons connecter le bouton pour définir la tâche du port.
SerialPort1.PortName = ComboBox1.Text
SerialPort1.BaudRate = ComboBox2.Text
SerialPort1.Parity = IO. Ports.Parity.None
SerialPort1.StopBits = IO. Ports.StopBits.One
SerialPort1.DataBits = 8
SerialPort1.Open()
Button13.Enabled = False
Button12.Enabled = True