Hi all,
I am new to VisualStudio.NET/Visual Basic and I'm trying to read/write values to the Windows Registry. However when I put the following code into my Form I get the above error message (in the Subject of this thread). The "RegistryKey" type is well documented but when I run the program I get the error. Also I have added a reference to the RegistryKey class.
Any help would be great, thanks in advance.
_RJO.
============================================================
Public Class RegMod
Inherits System.Windows.Forms.Form
Private Sub main()
Dim RegKey As RegistryKey = Registry.CurrentUser
RegKey = RegKey.OpenSubKey("Software\Microsoft\Internet Explorer\Main\"
Dim val As Object = RegKey.GetValue("VendorIdentifier"
Console.WriteLine("The central processor of this machine is:" + val)
End Sub
End Class
============================================================
I am new to VisualStudio.NET/Visual Basic and I'm trying to read/write values to the Windows Registry. However when I put the following code into my Form I get the above error message (in the Subject of this thread). The "RegistryKey" type is well documented but when I run the program I get the error. Also I have added a reference to the RegistryKey class.
Any help would be great, thanks in advance.
_RJO.
============================================================
Public Class RegMod
Inherits System.Windows.Forms.Form
Private Sub main()
Dim RegKey As RegistryKey = Registry.CurrentUser
RegKey = RegKey.OpenSubKey("Software\Microsoft\Internet Explorer\Main\"
Dim val As Object = RegKey.GetValue("VendorIdentifier"
Console.WriteLine("The central processor of this machine is:" + val)
End Sub
End Class
============================================================