Ok so my code is :
[VB]
tempreg = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\my program", True)
tempreg.setvalue("Tries", TriesString)
[/code]
in a sub which handles mybase.closing
I get this error :
well, if I put the number "2" instead of "TriesString" I get the same error
[VB]
tempreg = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\my program", True)
tempreg.setvalue("Tries", TriesString)
[/code]
in a sub which handles mybase.closing
I get this error :
Code:
An unhandled exception of type System.NullReferenceException occurred in microsoft.visualbasic.dll
Additional information: Object variable or With block variable not set.
well, if I put the number "2" instead of "TriesString" I get the same error