Hi guys, I am trying to create a simple application that can get all available serial port in my machine and then display it into a combobox. I used IO.Ports.SerialPort.GetPortNames() to get them and wanted to store them in an array.
When I tried to run it, no error message appeared yet my combobox is empty. I tried using try..catch statement to check any error but still no results.
Attached herewith are snippet of my code.
I am using VS2010, Windows 8.
Any advice is much appreciated. Thank you.
p/s: combobox1 is the name of the combobox i wish to store the list with.
When I tried to run it, no error message appeared yet my combobox is empty. I tried using try..catch statement to check any error but still no results.
Attached herewith are snippet of my code.
I am using VS2010, Windows 8.
Any advice is much appreciated. Thank you.
p/s: combobox1 is the name of the combobox i wish to store the list with.