Click here to Skip to main content
16,005,236 members
Home / Discussions / C#
   

C#

 
GeneralRe: Select entire row on Mouse Hover Pin
hooray7-Apr-05 1:13
hooray7-Apr-05 1:13 
GeneralCrystal Reports Push - in code Pin
V.6-Apr-05 21:31
professionalV.6-Apr-05 21:31 
GeneralUsing a C++ DLL Pin
SoCRaT6-Apr-05 20:49
SoCRaT6-Apr-05 20:49 
GeneralRe: Using a C++ DLL Pin
S. Senthil Kumar6-Apr-05 23:03
S. Senthil Kumar6-Apr-05 23:03 
GeneralRe: Using a C++ DLL Pin
hooray6-Apr-05 23:03
hooray6-Apr-05 23:03 
GeneralDataSet Pin
vuthaianh6-Apr-05 18:12
vuthaianh6-Apr-05 18:12 
GeneralRe: DataSet Pin
Christian Graus6-Apr-05 18:58
protectorChristian Graus6-Apr-05 18:58 
GeneralAdding Registry Values Not Working Pin
Schleichermann6-Apr-05 17:55
Schleichermann6-Apr-05 17:55 
I am finding it difficult to add a value to pretty much any registry key on a Windows XP machine. The folowing code allows me to add the new key and or open the key as read/write but will not all the value to be created and set. Even if I manually add the value the code will still not adjust what the value is set to. I have tested this on 8 different Win XP machines ranging from no service packs to the most receint. I have tried running the program including this test code under administrator and user account levels in XP with no luck. Can someone please tell me why this code does not do what it is supposed to. I thank you in advance for your assistance.


private static void NoCMD()
{
keyValueInt="2";
subKey = "Software\\Policies\\Microsoft\\Windows\\System";
try
{
key = Registry.CurrentUser;
key.CreateSubKey(subKey);
key.OpenSubKey(subKey,true);
key.SetValue("DisableCMD",keyValueInt);
key.Close();
Console.WriteLine("Edit Complete: Current_User\\" + subKey + "\n");
}
catch(Exception ex)
{
Console.WriteLine("Edit: Current_User\\" + subKey + "\n" +
"ERROR: " + ex.ToString());
}
}
GeneralRe: Adding Registry Values Not Working Pin
Christian Graus6-Apr-05 19:00
protectorChristian Graus6-Apr-05 19:00 
GeneralRe: Adding Registry Values Not Working Pin
Schleichermann6-Apr-05 19:02
Schleichermann6-Apr-05 19:02 
GeneralRe: Adding Registry Values Not Working Pin
Schleichermann6-Apr-05 19:13
Schleichermann6-Apr-05 19:13 
GeneralRe: Adding Registry Values Not Working Pin
Christian Graus6-Apr-05 19:23
protectorChristian Graus6-Apr-05 19:23 
GeneralRe: Adding Registry Values Not Working Pin
S. Senthil Kumar6-Apr-05 20:10
S. Senthil Kumar6-Apr-05 20:10 
GeneralRe: Adding Registry Values Not Working Pin
Anonymous6-Apr-05 20:14
Anonymous6-Apr-05 20:14 
QuestionHow to realize the Font Bar??? Pin
welsrping6-Apr-05 15:06
welsrping6-Apr-05 15:06 
AnswerRe: How to realize the Font Bar??? Pin
Ashok Dhamija6-Apr-05 18:23
Ashok Dhamija6-Apr-05 18:23 
GeneralNeed radiobuttons in datagrid - always visible Pin
ddelapasse6-Apr-05 14:41
ddelapasse6-Apr-05 14:41 
GeneralRe: Need radiobuttons in datagrid - always visible Pin
Kodanda Pani6-Apr-05 19:24
Kodanda Pani6-Apr-05 19:24 
GeneralRe: Need radiobuttons in datagrid - always visible Pin
ddelapasse7-Apr-05 3:45
ddelapasse7-Apr-05 3:45 
GeneralDataSet - column length Pin
mikker_1236-Apr-05 12:30
mikker_1236-Apr-05 12:30 
GeneralRemoted C# Windows Media Player Pin
dkarlton6-Apr-05 11:52
dkarlton6-Apr-05 11:52 
GeneralXSD Viewer Pin
Aaron Schaefer6-Apr-05 11:25
Aaron Schaefer6-Apr-05 11:25 
GeneralC# Resize a control question Pin
elapid6-Apr-05 10:39
elapid6-Apr-05 10:39 
GeneralRe: C# Resize a control question Pin
Christian Graus6-Apr-05 18:57
protectorChristian Graus6-Apr-05 18:57 
GeneralHiding a DataColumn in a DataGrid Pin
obelisk296-Apr-05 10:38
obelisk296-Apr-05 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.