Hey there, so i have small problem, my application has mainForm and settingsForm, so is there only possible way to get settingsForm to be started only on first time user starts application so he can configure correct configs and then after it any other starting of application user gets mainForm started?? Is it possible? How if it is?
Trle94
-3
Newbie Poster
Recommended Answers
Jump to PostYou can create a boolean settings variable with a name like FirstTime and set it to True. When your app starts, check the value of FirstTime. If it is true then hide the main form and display the settings form. Then set FirstTime to false and save it. If you …
Jump to PostSure thing. See attached vb 2010 project. Note, the Hide and Show are optional. It depends on whether or not you want the main form to be visible. I included a Reset button so you could reset the flag back to True otherwise you'd only be able to test it …
Jump to Postyou can use conditional statments that if settings are enabled then form main.show else setting form.show
Jump to PostYou don't need to do
mainForm.Form1_Load(Me, New EventArgs)
All 16 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Trle94
-3
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
satti
7
Light Poster
Trle94
-3
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Trle94
-3
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Mr.M
58
Future Programmers
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Mr.M
58
Future Programmers
ignnniter
0
Newbie Poster
Deep Modi
6
Posting Whiz
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Deep Modi
6
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.