After many varying searches on both this forum and the MSDN library I haven't found any examples that explain or provide code to successfully list all the instance names from a PerformanceCounter.

The performance counter I am trying to use works fine on this PC when i choose the InstanceName in design mode, but for distribution I need this to be selectable by the user.

I would greatley appreciate a sample or a link expaining what I need to declare and how to use it to output a list of InstanceNames to a combobox.

For coding simplicity to start with I have left the performancecounter named 'PerformanceCounter1' and the combobox 'ComboBox1'. I know the solution has something to do with the GetInstanceNames command but i don't know where that is or how to use it.

Any and all help will be appreciated