Re: VB-> form.show (II)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Sakharam Phapale (sphapale_at_annetsite.com)
Date: 10/26/04

  • Next message: Daniel O'Connell [C# MVP]: "Re: C# & VB-> General Questions"
    Date: Tue, 26 Oct 2004 14:05:43 +0530
    
    

    Hi Hareth,

    You need public instance of Form2, so that you can hide and show from
    different form classes.

    First Declare the variable as global in module.
        Public objFrm2 as new Form2
    Then show the form in any class by,
        objFrm2.Show()
    Then you can hide it from any class by,
        objFrm2.Hide()
    Then you can show it by,
         objFrm2.Show()

    Hopes this will help.

    Sakharam Phapale

    "Hareth" <abiheiri@hotmail.com> wrote in message
    news:el2p84wuEHA.1520@TK2MSFTNGP11.phx.gbl...
    > --------------------------------------------------------
    >
    > Button1_click
    >
    > Dim Form2 As New Form2
    >
    > Form2.Show()
    >
    > -------------------------------------------------------
    >
    > I wrote this,
    >
    > but in form2 i want it to hide()
    >
    > in form1 if i click Button1, it shows a new one....
    >
    > how do i get it to show form2 thats hidden?
    >
    >


  • Next message: Daniel O'Connell [C# MVP]: "Re: C# & VB-> General Questions"
  • Quantcast