Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

combobox

hi,
i am currently try to access the terminal server comm port. what i want is to
automatically display the comm port in the available combobox when the form is loaded. i have configured the comm port using the terminal server software. the problem is, it only display com 2 until com9. below is the code:

Private Sub Options_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim i As Integer

ComboBox1.Items.Clear()
For i = 1 To 15
If mComs(i) Then
ComboBox1.Items.Add("COM" & CStr(i + 1))
End If
Next
End Sub
[675 byte] By [mirzao] at [2007-11-11 7:14:33]