Connecting Tech Pros Worldwide Forums | Help | Site Map

Form only show once

Newbie
 
Join Date: May 2009
Posts: 4
#1: Oct 14 '09
How can i make it so a form will only show the very first time the program is run as a whole?

tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,783
#2: Oct 14 '09

re: Form only show once


Look for a known value in the registry. If you don't find it, then show the form and write in the value you look for. The next time it launches you will find that value, so you know you've opened that form at some time in the past.
Newbie
 
Join Date: May 2009
Posts: 4
#3: Oct 15 '09

re: Form only show once


the only problem with that is eventually i intend to virtualize my program so i need to find an alternative rout.





ps. Thats a good idea though that solved a diffrent problem i had, thanks =)
Newbie
 
Join Date: May 2009
Posts: 4
#4: Oct 15 '09

re: Form only show once


by the way incase someone didnt know virtualize means make portable by putting it in a virtual enviormens, that means no regestry and what not because next time its run it mite be interacting with a different registery.

any other ideas
Reply

Tags
first run, form, show