Does anyone have a msgbox including a "Don't ask again" checkbox? I could make my own but just feel a bit lazy today... :)
Printable View
Does anyone have a msgbox including a "Don't ask again" checkbox? I could make my own but just feel a bit lazy today... :)
1 x dialog, 3 x button, 1 x checkbox and some labels, 1 x select case...
Do it yourself.
That's what I meant to avoid. I thought there might be something in the codebank or somewhere but I couldn't find it.Quote:
Originally Posted by Jmacp
You need to improve your searching skills! :D
Search the VB6 CodeBank for MsgBox, using the "Titles Only" option. There are two results, one of which is exactly what you want.
Am I absent minded!!! I had searched 'msgbox' and no results were returned... and now I realize I had typed msgbox in the 'user name' rather than the 'keyword(s)' textbox :oQuote:
Originally Posted by si_the_geek
Thank you!
If I'm not too late, here you go.
Thanks Martin, maybe that's more like what I need.Quote:
Originally Posted by MartinLiss
On the other hand, I think I'd rather not mess around and leave entries in the registry that I may forget about in the future. Or, is it that I should remove it in the cleanup part when closing the application?
Is it really so advantageous to store the boolean flag in the registry?
Well if you want to remember the next time the user runs the program you have to store it externally someplace, and particularly for something simple like this the Registry is easy to use.
I see, actually I want the msgbox to show up at least once at the beginning, but it's important to have the checkbox as it's in a loop. So I don't need to save the value after the program is closed.Quote:
Originally Posted by MartinLiss
Okay then just do away with all the registry code and replace it with setting and checking a global Boolean.