Runtime changing values in Registry

I've used the following code to enter into the registry.... I've written this code in the Process function of StartPOS....

Dim regKey As RegistryKey Dim ver As Decimal regKey = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Retail Management System\Store Operations\Hooks\001", True) regKey.SetValue("Caption", "InitializeTransaction") regKey.SetValue("Description", "Test this") regKey.SetValue("HookType", "6") regKey.SetValue("ObjectName", "ClassLibrary1.Tender") regKey.SetValue("Parameter", "1") regKey.Close()

The values in the registry are entered properly but to reflect to the application I need to restart the application... Is there any other way out... ??

I want to write the values when the POS starts, and when I press the Tender button the newly added registry method shld get invoked....

(The reason behind doing this is that when I start my POS application my InitializeTransaction hook gets invoked as well as StartPOS hook is also invoked. Where only StartPOS hook should have got invoked on POS application start. So I am trying to just enter StartPOS into the registry and after my application starts then I'll enter InitializeTransaction hook into registry)

Waiting for ur reply.... :-(

Vicky... :-)

Reply to
Vicky
Loading thread data ...

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.