Ajax
ASP
C,C++
C#,.NET
CSS,HTML
Delphi,Kylix
Experience
Flash
Java
JavaScript
PHP
Python
QT
SQL
ShellScript
VB
U :
P :
Register
Lost Password
Other Links
Code Archive
Save Giovanni
C#,.NET Category Code
Real Name
:
Secure Shell
Subject
:
Save vaue to registry
Description
:
Save vaue to registry
using System; using System.Resources; using Microsoft.Win32; using System.Diagnostics; class Test { static void Main(string[] args) { // Save user prefs to reg. RegistryKey regKey = Registry.CurrentUser; regKey = regKey.CreateSubKey("Software\\Intertech\\YourKeyRes"); regKey.SetValue("CurrSize", "29"); regKey.SetValue("CurrColor", "Red"); Console.WriteLine("Settings saved in registry"); } }
Rating
:
0.00
(out of 5)
Visitor Voting Booth
:
Excellent
Very Good
Good
Fair
Poor
Copyright © 2006 SharingCode.NET . All rights reserved. Hosted By: SisNetworks