Added: Apr 29, 2002
Snippet uploaded by: snippet
Written By: HeSaidJoe
Demo: Sorry, no demo
Posted by HeSaidJoe on 02-13-2001 06:20 PM 1.) I am working on a project that lets you edit a button's properties at runtime. The problem is that I want the properties to be the same each time the exe is loaded. ex: a button is blue, the user changes to button to red, the button is red the next time the exe is loaded, not blue. 2.) How do I make it so that when the user clicks a "Never show this again" checkbox, that it will never show the form again??
Highlight all by clicking in box
' Variant to hold 2-dimensional array returned by GetSetting.
Dim MySettings As Variant
Public bNoShow As Boolean
Private Sub Check1_Click()
If Check1.Value = 1 Then
bNoShow = True
bNoShow = False
Private Sub Form_Load()
bNoShow = GetSetting(appname:="Project1", section:="Startup", _ Key:="Value", Default:=bNoShow)
If bNoShow = True Then
MsgBox "Load your main form"
MsgBox "load your checkbox form"
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
' Place some settings in the registry.
SaveSetting "Project1", "Startup", "Value", bNoShow
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.