Click here to Skip to main content
15,917,731 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I create a registry key in 'HKLM\Software\KeyName'.
I want to set the datetime value of binary Or DWord format that registry.
How can i solve it??
I wait for answer...
Posted
Updated 8-Nov-11 1:06am
v3

 
Share this answer
 
You can just convert it. Check this link:
http://msdn.microsoft.com/en-us/library/system.convert.toint32.aspx[^]

Good luck!
 
Share this answer
 
Dim regKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser



Sub add(ByVal name As String, ByVal path As String)





Dim key As Microsoft.Win32.RegistryKey = regKey.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)

key.SetValue(name, path, Microsoft.Win32.RegistryValueKind.String)



End Sub



Sub delete(ByVal name As String)





Dim key As Microsoft.Win32.RegistryKey = regKey.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)

key.DeleteValue(name)



End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900