Results 1 to 4 of 4

Thread: showind windows.forms (form.show = true)

  1. #1
    jom
    Guest

    showind windows.forms (form.show = true)

    Hi !

    I have a problem if i want to show an other form.
    A long time ago it worked imho like this:
    formname.show

    but in VB .NET beta 2 it does not work :-(

    can anyone give me a hint how to show a form ?

    thx
    Jens

  2. #2
    zchoyt
    Guest
    You must create an instance of the form you want to access.
    For examply say you have two forms in your project. Form1 and Form2.

    Dim Frm2 as Form2

    'Now you use Frm2 to change the properties.
    Frm2.Visible = True
    Me.Visible = False

  3. #3
    zchoyt
    Guest

    Smile

    I goofed.
    Dim Frm2 as New Form2

    or in a module
    Public Frm2 as New Form2

    That is what I have figured out so far.

  4. #4
    Junior Member LambChop's Avatar
    Join Date
    Jan 2002
    Posts
    22
    I had the same question. The posted solution worked, but how do I get back to the main form? I hid the main form with the me.visible = FALSE (me being Form1) before I made the new form visible, but how do I change it back? I tried Form1.visible = TRUE, but it didn't work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width