Click here to Skip to main content
15,921,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends

I have a scenario that update is available form is there.
in that form I have a check box. if I checked it the update message shouldn't show.
in another form I have another checkbox. if I checked it then it show the update available message..

can any one tell me how can we do that.

thanks in advance.


[Edit]Edited for Readability[/Edited]
Posted
Updated 29-May-11 18:23pm
v2
Comments
Sergey Alexandrovich Kryukov 30-May-11 0:25am    
Can you make it more clear?
--SA
Nithin Sundar 30-May-11 0:56am    
I think he means something like:

I have a form/dialog which tells the user "An update is available". This also contains a checkbox saying "Do not show this message again".
I have another form/dialog in which a checkbox says "Show me a message when updates are available".
Harish Reddy K 30-May-11 0:58am    
exactly...
I want this type only..

thanks for asking..
Harish Reddy K 30-May-11 1:02am    
here i got one idea...
when user checks the checkbox "Dont Show this Message" at that time we create a registry key in the application path..

here problem is if user wants to show the updates again.. how we can do that one...
Nithin Sundar 30-May-11 1:49am    
Well if you have that idea why not set the registry key to 0 if the user does not want to show and 1 if he wants to show it?

1 solution

well you can use database for that... create one table with field having bit datatype, that will store 0 or 1...
1 for showing the message and 0 for not showing the message...
OR
Best way to use global variable of Setting class means you can store value in Setting of that application using string variable...
for more information see the below links...
Link1[^]
Link2[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900