Support Forums
[QUESTION-Urgent] Only show a form the first time the application starts - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: [QUESTION-Urgent] Only show a form the first time the application starts (/showthread.php?tid=5082)



[QUESTION-Urgent] Only show a form the first time the application starts - Danny - 02-27-2010

How do IOnly show a form the first time the application starts? I know it's done with the settings but like how?


RE: [QUESTION-Urgent] Only show a form the first time the application starts - Extasey - 02-27-2010

Code:
form1_load
form1.hide
form2.show
I haven't coded in a while and I can't remeber the exact code... but just change form1 to whatever opens up first, then form2 to whatever you want to show.
Wait, are you saying you only want something like a disclaimer to pop up on the initial run of the program?


RE: [QUESTION-Urgent] Only show a form the first time the application starts - Danny - 02-27-2010

(02-27-2010, 05:21 PM)Extasey Wrote:
Code:
form1_load
form1.hide
form2.show
I haven't coded in a while and I can't remeber the exact code... but just change form1 to whatever opens up first, then form2 to whatever you want to show.
Wait, are you saying you only want something like a disclaimer to pop up on the initial run of the program?

Yeah, I want it to only pop up on the initial run of the program.


RE: [QUESTION-Urgent] Only show a form the first time the application starts - SouR'D - 02-27-2010

Check your Project settings than everything should be simple from there (I think)


I do not mean your code


RE: [QUESTION-Urgent] Only show a form the first time the application starts - Danny - 02-27-2010

Nevermind, I worked around it. Thanks anyways!


RE: [QUESTION-Urgent] Only show a form the first time the application starts - RaZoR03 - 04-18-2010

(02-27-2010, 05:21 PM)Extasey Wrote:
Code:
form1_load
form1.hide
form2.show
I haven't coded in a while and I can't remeber the exact code... but just change form1 to whatever opens up first, then form2 to whatever you want to show.
Wait, are you saying you only want something like a disclaimer to pop up on the initial run of the program?

It worked for me...Thanks