It’s been a while I did reg hacks, but something like this could work:
RegistryKey myKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Company\\Compfolder", true);
if(myKey != null) {
myKey.SetValue("Deno", "1", RegistryValueKind.String);
myKey.Close();
}
More Related Contents:
- Question about terminating a thread cleanly in .NET
- Make an Installation program for C# applications and include .NET Framework installer into the setup
- Word wrap for a label in Windows Forms
- How do I get the title of the current active window using c#?
- How to compare two rich text box contents and highlight the characters that are changed?
- How to get the “friendly” OS Version Name?
- Windows Forms Splash Screen – Show a form while loading main form
- Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) – possible?
- TabControl with Close and Add Button
- Application.Exit
- How can a Label control display Japanese characters properly when the Font used doesn’t support this language?
- How can I draw a rounded rectangle as the border for a rounded Form?
- Pass click event of child control to the parent control
- Invalid URI: The format of the URI could not be determined
- Change the borderColor of the TextBox
- C#: How to add subitems in ListView
- Remove Row inside TableLayoutPanel makes a layout problem
- Synchronize Scroll Position of two RichTextBoxes?
- How to create a Button that can send keys to a conrol without losing focus – Virtual Keyboard
- WinForms DataGridView – databind to an object with a list property (variable number of columns)
- How do I prevent print screen
- Prevent from displaying of Windows Security window
- Create custom shape for button
- Winforms TableLayoutPanel adding rows programmatically
- How can I show a tooltip on a disabled button?
- How to determine the size of a string given a font
- How to catch a key press on a C# .NET form
- ComboBox AutoComplete on SubString
- RichTextBox Newline Conversion?
- Winform form closed event