How To Ideas | How To Articles | How To Tutorials


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… Read more »

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… Read more »

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… Read more »

How To Delete A Registry Key Or Value Of A Key Using C#

Playing with Registry Keys might be dangerous for your Windows but if you are sure you want to delete a Registry key or one of its values, then here is a simple guide for you to achieve this using C# code. Instructions: Start by adding reference to Microsoft.Win32 namespace. using Microsoft.Win32; Now its important, if you want to delete a Registry Key, you have to reference its Parent Registry and… Read more »

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… Read more »



© 2012 How To Ideas. All rights reserved.
Proudly designed by Theme Junkie.