|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
create registry keyI am having a problem creating a registry key. I am using the following
code: My.Computer.Registry.LocalMachine.CreateSubKey("Software\programalpha") My.Computer.Registry.LocalMachine.SetValue("loglevel", "7") My.Computer.Registry.LocalMachine.GetValue("loglevel") When I run the above code the programalpha key is created. The loglevel value (which can hold the value of numbers between 1 and 10) does not get created. What am I doing wrong? Thanks, Ben Hai,
Maybe it is getting created in a default location. See if this helps: My.Computer.Registry.LocalMachine.CreateSubKey("Software\programalpha") My.Computer.Registry.LocalMachine.SetValue("Software\programalpha\loglevel", "7") My.Computer.Registry.LocalMachine.GetValue("Software\programalpha\loglevel") Just a thought.. Thank you for the suggestion. It did not work. Any other ideas?
Thanks, Ben Show quoteHide quote "IdleBrain" <indianmostwan***@yahoo.com> wrote in message news:1148860467.889757.34620@g10g2000cwb.googlegroups.com... > Hai, > Maybe it is getting created in a default location. > > See if this helps: > My.Computer.Registry.LocalMachine.CreateSubKey("Software\programalpha") > My.Computer.Registry.LocalMachine.SetValue("Software\programalpha\loglevel", > "7") > My.Computer.Registry.LocalMachine.GetValue("Software\programalpha\loglevel") > > > Just a thought.. >
A (not so) basic question.
select case Type Detect if virusscanner is installed Cal Dll was written by VC++ in VB receiving data over socket Obtain contents of an external listview and/or treeview breaking up strings Datagrid scrollbar filtering which files can be opened ¿How can I to get the time of execution of an application? |
|||||||||||||||||||||||