G
Guest
I need to detect if a key exists like this,
HKEY_CURRENT_USER\Software\MyCompany\MyProgram\UserName
If the key does exist, I am opening my main form;
Application.Run(new frm_Main());
Else Show.Dialog of my User Setup form.
The form launching I can handle without problem, my problem is seeing if the
key exists, and if not, then doing the redirect. I just can't seem to get
this to function properly, if the key isn't there I get a object error, if
the key is there then the app loads the main form properly.
All suggestions are greatly appreciated!
HKEY_CURRENT_USER\Software\MyCompany\MyProgram\UserName
If the key does exist, I am opening my main form;
Application.Run(new frm_Main());
Else Show.Dialog of my User Setup form.
The form launching I can handle without problem, my problem is seeing if the
key exists, and if not, then doing the redirect. I just can't seem to get
this to function properly, if the key isn't there I get a object error, if
the key is there then the app loads the main form properly.
All suggestions are greatly appreciated!