Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best way to structure data for a form?? Pin
OnlyTaz18-Apr-05 18:11
OnlyTaz18-Apr-05 18:11 
GeneralRe: Best way to structure data for a form?? Pin
Christian Graus18-Apr-05 18:16
protectorChristian Graus18-Apr-05 18:16 
GeneralC# win service Pin
18-Apr-05 10:56
suss18-Apr-05 10:56 
GeneralRe: C# win service Pin
Dave Kreskowiak18-Apr-05 14:47
mveDave Kreskowiak18-Apr-05 14:47 
GeneralRe: C# win service Pin
Member 67625519-Apr-05 10:33
Member 67625519-Apr-05 10:33 
GeneralRe: C# win service Pin
Dave Kreskowiak19-Apr-05 15:22
mveDave Kreskowiak19-Apr-05 15:22 
GeneralRe: C# win service Pin
Member 67625520-Apr-05 5:57
Member 67625520-Apr-05 5:57 
GeneralPerformance Counter Instances help Pin
grif18-Apr-05 10:21
grif18-Apr-05 10:21 
So I have been trying with not much luck to get Instances to work with my custom Performance Counters. I've looked everywhere I could think of, and the documentation isn't even close to good on how to create and then use instances with my custom counters. Perhaps I'll have to post an article on what worked for me so I can get feedback on what I should have done Hmmm | :| I found a newsgroup posting that claimed you had to reboot to get the instances to appear for a new custom counter. Only recently after rebooting did I get my instances to register when my application begins, I had tried everything short of rebooting to get them to appear in perfmon.

Now the issue with my instances is that the Instance names are all in lower case. I have not set them to be like this, is this a known issue? The Microsoft applications that have Performance Counter Instances don't use all lower case Instance names, so why must I? I want to be cool.
My code to create an instance looks like this:

PeformanceCounter PC1 = new PerformanceCounter("MyCategory", "Some Counter", "Value One", false);

I can then do things like increment and set the raw value, but in perfmon (and through the enumerating instance names with c# code) the instance name is; "value one". The Category and Counter names have the proper casing I used, but the Instance Name does not. This happens with all of the Instance names I try to use with my custom counter. Thanks in advance for any advice.
GeneralDesigning Class Library with Namespaces Pin
Seraphin18-Apr-05 8:47
Seraphin18-Apr-05 8:47 
GeneralRe: Designing Class Library with Namespaces Pin
Alex Korchemniy18-Apr-05 9:08
Alex Korchemniy18-Apr-05 9:08 
GeneralImport of CSV via ODBC issue Pin
RB@Emphasys18-Apr-05 8:42
RB@Emphasys18-Apr-05 8:42 
GeneralDeleting a line from a text file Pin
Member 75626018-Apr-05 8:34
Member 75626018-Apr-05 8:34 
GeneralRe: Deleting a line from a text file Pin
Luis Alonso Ramos18-Apr-05 8:46
Luis Alonso Ramos18-Apr-05 8:46 
GeneralProblem DLLImport and events Pin
thaukko18-Apr-05 5:01
thaukko18-Apr-05 5:01 
GeneralRestarting a service Pin
Mauricio Ritter18-Apr-05 4:38
Mauricio Ritter18-Apr-05 4:38 
GeneralRe: Restarting a service Pin
Dave Kreskowiak18-Apr-05 5:24
mveDave Kreskowiak18-Apr-05 5:24 
GeneralRe: Restarting a service Pin
Mauricio Ritter18-Apr-05 6:38
Mauricio Ritter18-Apr-05 6:38 
GeneralRe: Restarting a service Pin
Dave Kreskowiak18-Apr-05 7:33
mveDave Kreskowiak18-Apr-05 7:33 
GeneralRe: Restarting a service Pin
Alex Korchemniy18-Apr-05 9:05
Alex Korchemniy18-Apr-05 9:05 
QuestionHow to handle Scroll Bar events for word in c#? Pin
18-Apr-05 3:56
suss18-Apr-05 3:56 
GeneralReadFile, Accept methods in C#.net Pin
Babarsaeed18-Apr-05 3:39
Babarsaeed18-Apr-05 3:39 
GeneralHelp--Drag Drop Event Sometimes not work and Some times it works Pin
M Umair tariq18-Apr-05 1:59
M Umair tariq18-Apr-05 1:59 
Generalrdl in c# Pin
tvprithiv18-Apr-05 1:51
tvprithiv18-Apr-05 1:51 
GeneralRe: rdl in c# Pin
leppie18-Apr-05 3:37
leppie18-Apr-05 3:37 
QuestionHow to Ping? Pin
Alper Camel18-Apr-05 1:31
Alper Camel18-Apr-05 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.