473,426 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

"Don't Show Again" Feature on Form

I would like to add functionality to a form that contains a check box with
which the end user can check it so that this particular form won't appear
again.

I. e., a "Don't show this form again" box.

What approach is generally recommended to implement such functionality. A
general approach would be appreciated...I can probably get there if I knew
where to start... I'm totally blacking out on ideas here.

Thank you all for your time and input---It is appreiciated in advance.

--
Frank Bachman
(Grumpy Aero Guy)

Nov 23 '05 #1
6 3591
1) Keep a Boolean stored in a config file to track this selection. Probably
be best to place the file in the users local storage area.

....or...

2) Track the selection in the registry somewhere, preferable again in the
user specific area.

"Grumpy Aero Guy" <fbachman@beer_me.com> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl...
I would like to add functionality to a form that contains a check box with
which the end user can check it so that this particular form won't appear
again.

I. e., a "Don't show this form again" box.

What approach is generally recommended to implement such functionality. A
general approach would be appreciated...I can probably get there if I knew
where to start... I'm totally blacking out on ideas here.

Thank you all for your time and input---It is appreiciated in advance.

--
Frank Bachman
(Grumpy Aero Guy)

Nov 23 '05 #2
Dear Frank Bachman,

If I am correct, you should only need to place a checkbox on the form and
remember the checkedstate in the exit form-event.
With remember I mean store it somewhere so that you can retrieve this state
later. You can store this in a database, in a text file or in the registry,
to name a few places. Where you then normally would open this form, you now
first check to see if the stored value is 'checked'. If it is checked, then
you shouldn't open the form, otherwise you should.

I hope I have answered your question there,

Michel van den Berg

"Grumpy Aero Guy" <fbachman@beer_me.com> schreef in bericht
news:Oz**************@tk2msftngp13.phx.gbl...
I would like to add functionality to a form that contains a check box with
which the end user can check it so that this particular form won't appear
again.

I. e., a "Don't show this form again" box.

What approach is generally recommended to implement such functionality. A
general approach would be appreciated...I can probably get there if I knew
where to start... I'm totally blacking out on ideas here.

Thank you all for your time and input---It is appreiciated in advance.

--
Frank Bachman
(Grumpy Aero Guy)

Nov 23 '05 #3
This is a simple configuration file system.

Save an XML file in the local directory with the settings of your user
choices.

If desperate you could also take a retrograde step and go back to using the
Get / Set PrivateProfileInt or PrivateProfileString API.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Grumpy Aero Guy" <fbachman@beer_me.com> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl...
I would like to add functionality to a form that contains a check box with
which the end user can check it so that this particular form won't appear
again.

I. e., a "Don't show this form again" box.

What approach is generally recommended to implement such functionality. A
general approach would be appreciated...I can probably get there if I knew
where to start... I'm totally blacking out on ideas here.

Thank you all for your time and input---It is appreiciated in advance.

--
Frank Bachman
(Grumpy Aero Guy)

Nov 23 '05 #4
"Grumpy Aero Guy" <fbachman@beer_me.com> schrieb:
I would like to add functionality to a form that contains a check box with
which the end user can check it so that this particular form won't appear
again.

I. e., a "Don't show this form again" box.


For message boxes:

A "Don't show this again" checkbox for the .NET MessageBox
<URL:http://www.codeproject.com/cs/miscctrl/MessageBoxChk.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #5
I really wish programmers would store stuff like this in a config file and
not the registry as I don't like programs filling up my registry with program
specific junk!. Just my thoughts on the matter.
--
Dennis in Houston
"Herfried K. Wagner [MVP]" wrote:
"Grumpy Aero Guy" <fbachman@beer_me.com> schrieb:
I would like to add functionality to a form that contains a check box with
which the end user can check it so that this particular form won't appear
again.

I. e., a "Don't show this form again" box.


For message boxes:

A "Don't show this again" checkbox for the .NET MessageBox
<URL:http://www.codeproject.com/cs/miscctrl/MessageBoxChk.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #6
Lots of GREAT info. I was trying to avoid registry entries for reasons
eloquently stated above......

THANK YOU ALL VERY MUCH......

I guess I have another little programming experiment/project to play with
for a while.

--
Frank Bachman
(Grumpy Aero Guy)
"Grumpy Aero Guy" <fbachman@beer_me.com> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl...
I would like to add functionality to a form that contains a check box with
which the end user can check it so that this particular form won't appear
again.

I. e., a "Don't show this form again" box.

What approach is generally recommended to implement such functionality. A
general approach would be appreciated...I can probably get there if I knew
where to start... I'm totally blacking out on ideas here.

Thank you all for your time and input---It is appreiciated in advance.

--
Frank Bachman
(Grumpy Aero Guy)

Nov 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: eli | last post by:
Hi again, I know that "Show Column" query shows the name of all variables with their characteristics. I want to know if there is a command that ONLY shows the name of the varibales of a...
3
by: Will Atkinson | last post by:
Hi All, I'm a relative newbie to SQL Server, so please forgive me if this is a daft question... When I set "Show Execution Plan" on in Query Analyzer, and execute a (fairly complex) sproc, I...
1
by: Ahmad Noori | last post by:
I have a form and in the form, I have a drop down box. Based on what the user selects, i want to display different input boxes. Here is my drop down box: <td> <select name="reptype"...
21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
2
by: Mike | last post by:
I am trying to call one webform from the click event of a button on another webform. In VB6 windows applications, this is a simple Form.Show, but I can't figure out the syntax to call Webforms....
6
by: Lee | last post by:
how can i do this? I have a form, which i do not want to keep on top of all others (TopMost), yet i dont want it dissapearing when the "show desktop" button is pressed. Now i know that the...
3
by: Jimmy | last post by:
I use a combo box to filter the results of a form. Sql for combo box is... SELECT StatusPriority, Status FROM tblStatus UNION Select = 0 as AllChoice, "Show All" as Bogus From tblStatus ORDER...
5
by: Tony Toews [MVP] | last post by:
I'm very upset with Google's policy of indexing and allowing Google advertising on forum web sites which are "slurping" content from Usenet and Microsoft newsgroup servers. ...
3
by: dearprasan | last post by:
I am trying to show a message box with additional feature to put a checkbox for something like "Dont show me again" etc. Is there an easy way to achieve this?
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.