knowledgelover 0 Junior Poster in Training

Hi everybody,
I have two ways to change a registry key , but I have never seen the influence of the changing
should I perform any saving operation or something ?

example:

RegistryKey myKey = Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Services\MyService", true);
myKey.SetValue("Type", 272);

as result I found the property is checked but there is no real effect , it stills behave as the property had never changed

urgent help is appreciated
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.