List/Grid Tag Archives: registry key in c sharp
How To Create DWORD Value In Existing Registry Key Using C#
A DWORD is an unsigned integer and on x86 machines, a DWORD value is 32 bits long but simple string value is of 16 bits only. In my last article on Registry Editing using C#, I shared about creating simple string values in Registry Keys, but if you want to create DWORD you have to specify this while creating Values in Registry Key, otherwise it will consider your Value as…
How To Create Registry Key Or A Value In A Registry Key
Continuing my discussion on accessing Registry Keys using C#, in this article I will discuss about creating new Registry keys or creating values in an existing Registry key. Instruction: To create a new Registry Key as a sub Key of any existing registry key, use CreateSubKey method of RegistryKey class. RegistryKey rk = Registry.CurrentUser; rk.CreateSubKey("HowToIdeas"); To create a value field in any existing Registry Key use SetValue function present in…
How To Perform Searching In Registry Keys Using C#
To continuing my discussion about Registry Keys, I would like to share one more trick about Registry keys here. As we can perform searching in Registry Keys, in Registry Editor, now I will tell you how can we perform similar kind of searching in Registry Keys using C#. Now if you are familiar with RegistryKey class in .NET, and searching a particular substring in string, then you can perform this…
How To Create Notepad Application
Here is my simple notepad application, which demonstrate how you can Create and save .txt files using FileInfo class and SaveFileDialog class Write content to those files using StreamWriter class Open files using OpenFileDialog class Printing using vatious classes from System.Drawing.Printing namespace Searching and Replacing text in the application in forward and reverse direction Adding current time in your .txt file Changing background colour using ColorDialog Changing Font using FontDialog…