borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 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 19-03-2008 Re: Loops pls help by stickleprojects
icon 18-03-2008 VB code generation TSQL scripts for SQL2k by stickleprojects
icon 28-02-2008 Re: How to create a common menu for whole proj? #1 by Bharathi
icon 21-02-2008 Database searching by Muthu
icon 20-02-2008 Printing using with "Printer" object by Muthu
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

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