谢谢水如烟,我自己也试着写了一点儿,你能帮我看看么?如下:
Me.ComboBox1.SelectedIndex = 0
Dim int As Integer = 0 - 1
int += 1
If int <= Val(Me.ComboBox1.Items.Count) Then
Me.ComboBox1.SelectedIndex = int
If Me.ComboBox1.Text.Contains("/") Then
Me.SerialPort1.Write(Me.ComboBox1.Text)
End If
If Me.ComboBox1.Text.Contains("ms") Then
Me.Button14_Click(sender, e)
End If
End If
不用管它的意思,可以运行么?