Click here to Skip to main content
15,886,362 members

Comments by GrooverFromHolland (Top 15 by date)

GrooverFromHolland 29-Dec-15 15:08pm View    
With the help of OriginalGriff I came to a working solution that I will post so others can profit,

Groover
GrooverFromHolland 29-Dec-15 13:06pm View    
You are absolutely right, I will try a different approach to get a list of USB-Serial devices.

Thank You for Your effort,

Groover
GrooverFromHolland 29-Dec-15 11:07am View    
If I check for null after searcher2.Get(), than I get an error: ManagementObjectCollection does not contain a definition for Where.
If I check for null after Cast<<managementobject>>() mo2 still is null.

Groover
GrooverFromHolland 28-Apr-14 12:02pm View    
Hi KM,<br>
From Your code it was not possible to know what control Rx-_Box could be. So I commented: Here RX_Box is RitchTextBox, not Listbox. ListBox is not normally. used to display messages. If You want to use ListBox just change it to: ListBox.Add(RxString).
GrooverFromHolland 27-Apr-14 7:27am View    
Hi Alan,

I never new there was a difference between value member and display member. This is very useful, not only for me but for many others.
In my original code I already have the two different Arrays with valueStrings, like this:
for (int i = 0; i < ComPortInformation.Count; i++)
{
listBox1.Items.Add(ComPortInformation[i].friendlyName +
" " + ComPortInformation[i].portName);
}

so implementing this is easy.

Thank You very much, answer accepted and a +5!

Groover