Click here to Skip to main content
15,881,757 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Related value in Datagridviewcolumn Pin
Infarkt25-Jul-09 15:29
Infarkt25-Jul-09 15:29 
QuestionOleDbParameter and "IS NOT NULL" Pin
:o:k:23-Jul-09 0:32
:o:k:23-Jul-09 0:32 
AnswerRe: OleDbParameter and "IS NOT NULL" Pin
:o:k:24-Jul-09 3:02
:o:k:24-Jul-09 3:02 
AnswerRe: OleDbParameter and "IS NOT NULL" Pin
Jack Vanderhorst25-Jul-09 4:20
Jack Vanderhorst25-Jul-09 4:20 
Questionabout ajax Pin
sapna sangole22-Jul-09 20:59
sapna sangole22-Jul-09 20:59 
AnswerRe: about ajax Pin
Pete O'Hanlon22-Jul-09 22:03
mvePete O'Hanlon22-Jul-09 22:03 
AnswerRe: about ajax Pin
Baran M22-Jul-09 22:47
Baran M22-Jul-09 22:47 
QuestionRegistry Manipulation - Odd behaviour Pin
Tristan Rhodes22-Jul-09 6:31
Tristan Rhodes22-Jul-09 6:31 
Hi Guys,

I've got a little wrapper class that exposes some registry properties in my code. This works and passes the unit test for writing and reading the value and comparing the result. However, when i look in the registry, there's no section for the values i am manipulating.

public static void SetGroupRegInfo(string group, string key, string value)
{
    RegistryKey rkApp = Registry.LocalMachine.CreateSubKey(
                REGISTRY_MICA_GROUPS + "\\" + group,
                RegistryKeyPermissionCheck.ReadWriteSubTree);

    try
    {
        rkApp.SetValue(key, value);
    }
    finally
    {
        rkApp.Close();
    }
}

public static string GetGroupRegInfo(string group, string key)
{
    RegistryKey rkApp = Registry.LocalMachine.OpenSubKey(
                            REGISTRY_MICA_GROUPS + "\\" + group,
                            RegistryKeyPermissionCheck.ReadSubTree,
                            RegistryRights.QueryValues);

    if (rkApp == null)
        return null;

    try
    {
        return (string)rkApp.GetValue(key);
    }
    finally
    {
        rkApp.Close();
    }
}


The base registry entries are created correctly by the application installer, but these values just don't seem to appear.

Any thoughts?

Regards

Tris

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

AnswerRe: Registry Manipulation - Odd behaviour Pin
led mike22-Jul-09 6:54
led mike22-Jul-09 6:54 
GeneralRe: Registry Manipulation - Odd behaviour Pin
Luc Pattyn22-Jul-09 7:11
sitebuilderLuc Pattyn22-Jul-09 7:11 
GeneralRe: Registry Manipulation - Odd behaviour Pin
led mike22-Jul-09 7:19
led mike22-Jul-09 7:19 
GeneralRe: Registry Manipulation - Odd behaviour Pin
Luc Pattyn22-Jul-09 7:23
sitebuilderLuc Pattyn22-Jul-09 7:23 
GeneralRe: Registry Manipulation - Odd behaviour Pin
led mike22-Jul-09 7:26
led mike22-Jul-09 7:26 
GeneralRe: Registry Manipulation - Odd behaviour Pin
Luc Pattyn22-Jul-09 7:52
sitebuilderLuc Pattyn22-Jul-09 7:52 
GeneralRe: Registry Manipulation - Odd behaviour Pin
Tristan Rhodes22-Jul-09 23:04
Tristan Rhodes22-Jul-09 23:04 
AnswerRe: Registry Manipulation - Odd behaviour Pin
Luc Pattyn22-Jul-09 7:09
sitebuilderLuc Pattyn22-Jul-09 7:09 
GeneralRe: Registry Manipulation - Odd behaviour Pin
Tristan Rhodes22-Jul-09 23:21
Tristan Rhodes22-Jul-09 23:21 
GeneralRe: Registry Manipulation - Odd behaviour Pin
Luc Pattyn23-Jul-09 0:20
sitebuilderLuc Pattyn23-Jul-09 0:20 
Question[Message Deleted] Pin
ksss_maheshece22-Jul-09 3:21
ksss_maheshece22-Jul-09 3:21 
AnswerRe: How can Embed a xml file? Pin
led mike22-Jul-09 5:49
led mike22-Jul-09 5:49 
GeneralRe: How can Embed a xml file? Pin
Mark Salsbery22-Jul-09 6:10
Mark Salsbery22-Jul-09 6:10 
GeneralRe: How can Embed a xml file? Pin
led mike22-Jul-09 6:12
led mike22-Jul-09 6:12 
GeneralRe: How can Embed a xml file? Pin
Mark Salsbery22-Jul-09 6:23
Mark Salsbery22-Jul-09 6:23 
GeneralRe: How can Embed a xml file? [modified] Pin
led mike22-Jul-09 6:46
led mike22-Jul-09 6:46 
QuestionXml Serializer - Default namespace on top-level Element Pin
Martijn Boeker21-Jul-09 20:14
Martijn Boeker21-Jul-09 20:14 

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.