0

Hello everyone, I'm currently trying to make my application start automatically on pc restart. Now could you help me out with this error: http://screencast.com/t/hmwYmvqg9jK

Here is snippet:

 Dim regKey As Microsoft.Win32.RegistryKey
 regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
 regKey.SetValue(Application.ProductName, Application.ExecutablePath)
 regKey.Close()
1
Contributor
1
Reply
5
Views
3 Years
Discussion Span
Last Post by Trle94
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.