borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2012 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 10-01-2012 Re: Export to Excel from Access Error by GeoffS
icon 27-12-2011 Export to Excel from Access Error by gosamerone
icon 13-12-2011 Re: Find and Replace by GeoffS
icon 26-08-2011 Re: Plz help by GeoffS
icon 15-02-2011 How to Add a Formula for Excel by Daisy09
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2012 Andrea Tincaniborder