|
-
Apr 3rd, 2013, 03:01 AM
#1
Thread Starter
Hyperactive Member
Checkbox to show form no more
On a form completely blank and one check box, what code do I need there so if ticked and reloaded the main form loads and this blank form doesnt?
Thank you.
Last edited by jokerfool; Apr 11th, 2013 at 11:03 AM.
-
Apr 3rd, 2013, 08:48 AM
#2
Re: Checkbox to show form no more
Which of these two scenarios are you talking about:
1) Run the app.
2) Show the form.
3) Check the checkbox.
4) Hide the form.
5) Attempt to show the form again, but it doesn't show.
6) Close the app.
or else:
1) Start the app.
2) Show the form.
3) Check the checkbox.
4) Close the app.
5) Start the app again.
6) Attempt to show the form again, but it doesn't show.
7) Close the app.
My usual boring signature: Nothing
 
-
Apr 3rd, 2013, 09:03 AM
#3
Re: Checkbox to show form no more
This sounds like a "don't show this message again" scenario. If so, create a setting of type Boolean on the Settings page of the project properties. You can choose to set the default value to True or False, depending on whether you want it to mean show or don't show the form. The choice is yours. When you run the app, test the value of that setting and either show or don't show the form as appropriate. When the user checks the CheckBox to not show the form, simply toggle the value of that setting via My.Settings. Once the settings are saved, which you can do explicitly or allow to happen automatically at shutdown, the form will not be shown again.
-
Apr 4th, 2013, 08:16 AM
#4
Thread Starter
Hyperactive Member
Re: Checkbox to show form no more
1. Start the app
2. Form Displays a comment
3. Tick Box to Dont Show again
4. Main app loads
5. Main app closes
6. Main app opens and that previous Form I ticked to not show, doesnt show
7. Happy
-
Apr 4th, 2013, 09:06 AM
#5
Re: Checkbox to show form no more
Here is an example project done in VS2008
-
Apr 11th, 2013, 11:02 AM
#6
Thread Starter
Hyperactive Member
Re: Checkbox to show form no more
Spot on kevininstructor. Thank you. +rep
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|