borderAndreaVB free resources for Visual Basic developersborder
AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2017 Andrea Tincani
:: Create a Form with a "Don't show this message again" Form

Author  

Andrea Tincani

Language  

VB5, VB6

Operating Systems  

Windows 95, 98 and NT
Usage
'Add a Command button to Form1. At Startup Form1 will show form2, then you can use the check boc to tell your application not to show this form at next startup. With the command button you can load the form2 even if you have checked the 'don't show this message again' check box. You can put the Form_Load code even in the Sub Main Sub...

Private Sub Command1_Click()
    Form2.Check1.Value = Val(GetSetting("MyApp", "General", "DontShow", 0))
    Form2.Show
End Sub

Private Sub Form_Load()
    If GetSetting("MyApp", "General", "DontShow", 0) = 0 Then
        Form2.Check1.Value = Val(GetSetting("MyApp", "General", "DontShow", 0))
        Form2.Show
    End If
End Sub

'Then create another form (Form2) and add a check box...the 'Don't show this message again' check box

Private Sub Check1_Click()
    SaveSetting "MyApp", "General", "DontShow", Check1.Value
End Sub

:: Navigation

Home

Using the Registry

Previous Tip

Next Tip

:: Search this site
Google
:: Related Topics
icon 09-10-2014 Re: Create Code 93 for .NET Crystal Reports applications by bobbell2
icon 15-05-2013 Re: Data Type Mismatch - What does it mean..?? by estatistics
icon 14-08-2012 VB6 to C# convert coding by VYX
icon 31-07-2012 online marketing strategy in recent times by weabarqueek
icon 23-07-2012 Create Code 93 for .NET Crystal Reports applications by KeepDynamic
borderAndreaVB free resources for Visual Basic developersborder
borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2017 Andrea Tincaniborder