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()

Fixed my bad sorry had:
Imports DesktopLock.My
On top o.O

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.