Category Archives: registry

Get the computer’s registered owner and organization in C#

In Windows 98, the system’s registered owner and company name is stored in the following Registry keys: SOFTWARE\Microsoft\Windows\CurrentVersion\RegisteredOwner SOFTWARE\Microsoft\Windows\CurrentVersion\RegisteredOrganization In Windows NT and later, the registered owner and company is stored in the following keys: SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOwner SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization This … Continue reading

Posted in registry, system | Tagged , , , , , , , , , | Leave a comment

Write values in the Registry in C#

The example Read Registry values (to get the desktop icon size) in C# shows how to read values from the Registry. This example shows how to write values into the Registry and uses that ability to refresh the desktop icons … Continue reading

Posted in registry, system | Tagged , , , , , , , , , , | Leave a comment

Read Registry values (to get the desktop icon size) in C#

To make using Registry methods easier, this example defines a RegistryTools class that contains static methods for interacting with the Registry. The following code shows the GetRegistryValue method. // Get a registry value. public static object GetRegistryValue(RegistryKey hive, string subkey_name, … Continue reading

Posted in registry, system | 3 Comments

Display an end user license agreement (EULA) in C#

Many program display an end-user license agreement (EULA) when they are installed or the first time they are run. This example uses a form called EulaForm to display a RichText format EULA file. The form returns DialogResult.OK if the user … Continue reading

Posted in forms, programs, registry | Tagged , , , , , , , , , | 3 Comments

Make a password manager in C#

Before I discuss this example, let me make a disclaimer and say that I can’t guarantee this application’s performance. I think it is secure but for something as important as passwords you need to merely use this program as an … Continue reading

Posted in algorithms, cryptography, mathematics, registry, system | Tagged , , , , , , , , , , , , , , , , , , , | 2 Comments

Easily save and restore a form’s settings in the Registry in C#

This example shows how you can easily save and restore all of a form’s settings and the values of its controls in the Registry in C#. The example Save and restore program settings in C# saves and restores a form’s … Continue reading

Posted in forms, programs, registry | Tagged , , , , , , , , , , , | 7 Comments

A plea for help: Tell me what you want to see in my blog!

I get remarkably little feedback from my blog. I track post views and know that I have 857 Twitter followers, but people rarely let me know if they particularly like or dislike a post. That makes it hard for me … Continue reading

Posted in ADO.NET, algorithms, animation, API, challenges, combinatorics, controls, cryptography, curve fitting, database, extension methods, files, fonts, fractals, games, geometry, globalization, graphics, internationalization, LINQ, localization, mathematics, Office, phone, printing, reflection, registry, serialization, threading, transformations, user interface, Word, wpf, XAML, XML | 13 Comments