| Mirage Source http://miragesource.net/forums/ |
|
| Open form on first run http://miragesource.net/forums/viewtopic.php?f=201&t=4706 |
Page 1 of 1 |
| Author: | Nean [ Fri Nov 07, 2008 3:31 pm ] |
| Post subject: | Open form on first run |
So I've googled the shit out of this, but to no avail. I've been looking for a code, that will allow me to set events and whatnot to happen on the first run of a program. So for example, I make a program, on first run frmabout pops up with the controls, etc, etc. Any clue if this is possible? |
|
| Author: | DarkX [ Fri Nov 07, 2008 3:43 pm ] |
| Post subject: | Re: Open form on first run |
Umm you could have frmMainMenu come up and have in the code Form_Load(or add form_load) Code: frmAbout.visible = true or something like that and have a close button on it. |
|
| Author: | Rian [ Fri Nov 07, 2008 5:04 pm ] |
| Post subject: | Re: Open form on first run |
Well, I dunno if you use a client side setup.ini file, but that's how I'd do it since I already use one to store options and the userame and password. In the Setup.ini you could have something like: FirstRun=Yes or FirstRun=1 Then check the ini for that value, If it's yes (or 1) then open the new form, then write to the ini "No" or 0 to prevent the form from popping up after that. |
|
| Author: | Nean [ Fri Nov 07, 2008 6:06 pm ] |
| Post subject: | Re: Open form on first run |
Sonire wrote: Well, I dunno if you use a client side setup.ini file, but that's how I'd do it since I already use one to store options and the userame and password. In the Setup.ini you could have something like: FirstRun=Yes or FirstRun=1 Then check the ini for that value, If it's yes (or 1) then open the new form, then write to the ini "No" or 0 to prevent the form from popping up after that. Thanks Sonire |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|