2010年9月20日 星期一

regedit for Microsoft.Win32

'Example:
Imports Microsoft.Win32
'....

Dim regKey As RegistryKey, regSubKey As RegistryKey
'regKey now points to HKEY_LOCAL_MACHINE Registry Key
regKey = Registry.LocalMachine
'A Sub key called MyProgram is created under the
'HKEY_LOCAL_MACHINE key
regSubKey = regKey.CreateSubKey("Software\Microsoft\Windows\MyProgram")
'The value of the Key is set to Registered Owner and Organization
regSubKey.SetValue("RegisteredOwner", txtName.Text)
regSubKey.SetValue("RegisteredOrganization", txtCompany.Text)

沒有留言:

張貼留言