Click here to Skip to main content
15,891,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to determine number of time's that a form display
in more details :
my form is login form
user&password
but if the user install the application
he can register only one time
so i want to know if he already open the application of specifically the register form .
Posted
Comments
kbrandwijk 3-Sep-14 10:35am    
The general answer is simple. Store that flag somewhere. Can be a registry setting, ini file, database, whatever suits your needs.

1 solution

You don't want to determine if the "register" form has been displayed - you want to know if the user has registered (or if he wants to register again, as a different user). Think about it: if you only allow him to display it once, what happens if he closes it without completing registration? He can't register any more!

So provide a link from your Login screen to the register screen (just as most websites do) and let him decide if he wants to use his existing log on (from a different PC perhaps, or the current one before he reformatted it) or set up a new registration.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900