1
Reply

how to get InstanceName in advance?

reubin1108001

reubin1108001

Mar 9 2004 2:17 AM
1.6k
I'm using Visual Studio .NET to write a program which monitors system information. As I could use items in the Windows Forms and select CategoryName, CounterName, InstanceName from Properties, VS writes the code for me, but here comes the problem. If I want to run the executable file in other machines, instanceName might be different from the machine where I write the program and it will crash. Does someone know how to solve this problem? Thanks a lot.

Answers (1)