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[
^]