Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Singleton objects Pin
Sijin13-Nov-02 18:27
Sijin13-Nov-02 18:27 
Generalrecursively search the registry and delete text found. Pin
Derek Smigelski13-Nov-02 4:21
Derek Smigelski13-Nov-02 4:21 
GeneralRe: recursively search the registry and delete text found. Pin
Stephane Rodriguez.13-Nov-02 5:45
Stephane Rodriguez.13-Nov-02 5:45 
GeneralRe: recursively search the registry and delete text found. Pin
Derek Smigelski13-Nov-02 5:55
Derek Smigelski13-Nov-02 5:55 
GeneralRe: recursively search the registry and delete text found. Pin
leppie13-Nov-02 8:55
leppie13-Nov-02 8:55 
GeneralRe: recursively search the registry and delete text found. Pin
leppie13-Nov-02 8:59
leppie13-Nov-02 8:59 
GeneralRe: recursively search the registry and delete text found. Pin
Derek Smigelski13-Nov-02 9:00
Derek Smigelski13-Nov-02 9:00 
GeneralRe: recursively search the registry and delete text found. Pin
leppie13-Nov-02 9:44
leppie13-Nov-02 9:44 
OK, I suggest you register and get all the benefits of being a CP'ian Smile | :) but here you go. The FindKey method will print the location of a specified key name (not value, but thats easy too).

private static void FindKey(RegistryKey key, string keyname)
{
   string[] values = key.GetValueNames();
   for (int j = 0; j < key.ValueCount; j++)
   {
      if (values[j] == keyname) Console.WriteLine(key.Name);
   }
   string[] subkeys = key.GetSubKeyNames();
   for (int i = 0; i < key.SubKeyCount; i++)
   {
      try 
      {
         FindKey(key.OpenSubKey(subkeys[i]), keyvalue);
      }
      catch (System.Security.SecurityException){}
   }
}

public static void Main(string[] args)
{
   FindKey(Registry.CurrentUser, "LeppieRules");
}

It shouldnt be a problem to go from there. Remeber USE AT OWN RISK, I TAKE NO RESPONSIBILITY AT ALL.

"I dont have a life, I have a program."
GeneralRe: recursively search the registry and delete text found. Pin
Derek Smigelski13-Nov-02 10:34
Derek Smigelski13-Nov-02 10:34 
GeneralRe: recursively search the registry and delete text found. Pin
Derek Smigelski13-Nov-02 10:41
Derek Smigelski13-Nov-02 10:41 
Generaltcpclient through proxy Pin
Kannan Kalyanaraman13-Nov-02 2:55
Kannan Kalyanaraman13-Nov-02 2:55 
GeneralOCX memory leak in C# Pin
gharrison12-Nov-02 21:29
gharrison12-Nov-02 21:29 
QuestionC# and Visual C#, Difference? Pin
Aisha Ikram12-Nov-02 21:16
Aisha Ikram12-Nov-02 21:16 
AnswerRe: C# and Visual C#, Difference? Pin
Sijin13-Nov-02 0:30
Sijin13-Nov-02 0:30 
GeneralRe: C# and Visual C#, Difference? Pin
Aisha Ikram14-Nov-02 18:08
Aisha Ikram14-Nov-02 18:08 
AnswerRe: C# and Visual C#, Difference? Pin
James T. Johnson13-Nov-02 4:01
James T. Johnson13-Nov-02 4:01 
GeneralRe: C# and Visual C#, Difference? Pin
Stephane Rodriguez.13-Nov-02 5:41
Stephane Rodriguez.13-Nov-02 5:41 
GeneralRe: C# and Visual C#, Difference? Pin
James T. Johnson13-Nov-02 6:48
James T. Johnson13-Nov-02 6:48 
GeneralRe: C# and Visual C#, Difference? Pin
David Stone13-Nov-02 9:01
sitebuilderDavid Stone13-Nov-02 9:01 
GeneralRe: C# and Visual C#, Difference? Pin
leppie13-Nov-02 9:47
leppie13-Nov-02 9:47 
GeneralRe: C# and Visual C#, Difference? Pin
David Stone13-Nov-02 9:53
sitebuilderDavid Stone13-Nov-02 9:53 
GeneralRe: C# and Visual C#, Difference? Pin
leppie13-Nov-02 10:02
leppie13-Nov-02 10:02 
GeneralRe: C# and Visual C#, Difference? Pin
Aisha Ikram17-Nov-02 20:35
Aisha Ikram17-Nov-02 20:35 
GeneralUsers control validating Pin
shab212-Nov-02 18:57
shab212-Nov-02 18:57 
QuestionListView Header Color? Pin
Anonymous12-Nov-02 11:59
Anonymous12-Nov-02 11:59 

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.