Page 1 of 1

first load

Posted: Tue May 04, 2010 1:57 am
by zachman61
how can you make it load a form the first time the program is run and then not show from then on

Re: first load

Posted: Tue May 04, 2010 3:29 am
by NoWayIn
you can use My.Settings
in your project double click your project name
click the TAB that say Settings
make a new one call something like "FirstRun"
set the value to 0

on your form load do something like

If My.Settings = 0 then
Form1.Show
Else
Form2.show
My.Settings.FirstRun = 1
My.Settings.Save

Then whenever your form runs again, it wont show form1, it will show form2

Re: first load

Posted: Thu May 06, 2010 12:14 am
by GoodGuy17
CodenStuff has posted this in my request, but looks like its already been answered here.

Re: first load

Posted: Thu May 06, 2010 7:46 pm
by zachman61
can you link your request
also im going to test it in it

Re: first load

Posted: Thu May 06, 2010 7:50 pm
by GoodGuy17
Whoops never-mind no he didn't sorry