Google Answers Logo
View Question
 
Q: Assigning a variable to a perf. counter created in server explorer in vb.net2003 ( No Answer,   0 Comments )
Question  
Subject: Assigning a variable to a perf. counter created in server explorer in vb.net2003
Category: Computers
Asked by: drbeer-ga
List Price: $25.00
Posted: 17 Jan 2005 10:19 PST
Expires: 18 Jan 2005 13:36 PST
Question ID: 458684
I'am trying to create a performance monitoring application in vb.net 2003.  
This is a sample of my code (whereas the object that I have created in
Server Explorer is called "perfAvailMem"):

Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btn1.Click
        Dim value
        value = perfAvailMem.NextValue
        MsgBox("You have " & value & " Megs of available Memory available")

    End Sub

Although I can use server explorer to create objects for each specific
performance counters (IE Memory/Available MBytes), I would have to
create objects for every desired performance counter times the number
of computers on my network.  That could be hundreds if not almost a
thousand objects depending on the number of desired performance
counters... This is not efficient.

Instead... I would like to use a ComboBox to pick a name of a
computer, and then another ComboBox to pick a desired counter.  Is
this possible?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy