Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open form on first run
#1
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?
Reply
#2
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.
Reply
#3
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.
Reply
#4
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 Smile, I think I'll do something like that. Also thanks for the answer DarkX, just not what I was looking for. =]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)