How to do a form not to appear again ?

kresh7
02-21-2008, 09:42 AM
So i want to make a program that needs a serial key and i
want to know how to do if someone put the right serial key he dont need to put it again the form dont appear again ?
sry for my bad english :S

the master
02-21-2008, 10:01 AM
The way i do it is once a valid key is entered the key gets saved into the registry. When the app loads again it checks the value in the registry and validates it again. If it validates then the form doesnt show.

The code works asif the user had entered the key but its loaded from the registry instead

kresh7
02-21-2008, 10:54 AM
cool can you give me an example cuz im still a begginer ?

the master
02-21-2008, 11:29 AM
See Accessing the Registry with VB6 and VB.NET (http://www.codeguru.com/vb/gen/vb_system/directoriesandfiles/article.php/c12067/). Page 1 refers to VB6.

In your app you can use getsetting() in form_load to check the stored value. If its wrong or doesnt exist then show the form.

kresh7
02-21-2008, 11:42 AM
thank you a lot i hope this helps me cuz im still an begginer not realy a begginer but still new im sry for my bad english im from kosovo and thats why i cant speak that clear english

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum