Hide and Show Forms

In Visual Basic 6.0 it had Whatever.Hide and Whatever.Show commands.

In Visual Basic 2005 Beta 2 it does not recognize the .Hide and .Show commands.

What is the right commands for this program



Answer this question

Hide and Show Forms

  • Slicksim

    Hi,

    I just tried it and it works. Remember the default-instance was re-introduced in VB2005. Unlike in 2003 in which you'll have to create an instance of your form in order to use it:

    Dim frm1 As New Form1()
    frm1.Show()

    In 2005, you can use your form exactly like VB6 in which you could use it directly:

    Form1.Show()
    Form1.Hide()
    '' Form1 is the name of your form

     

    cheers,

    Paul June A. Domag



  • Hide and Show Forms