Re: How to show a form, which has been hidden

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Sacrilege (unknown_at_aol.com)
Date: 05/20/04


Date: Wed, 19 May 2004 19:37:04 -0700


        Why don't you show the second form as modal so that the user will
never be able to se or use the first form again until the second form has
been closed?

-- 
"Gergo" <a620@freemail.hu> wrote in message
news:%23ndKRqePEHA.3660@TK2MSFTNGP11.phx.gbl...
> Hello,
> I have almost finished my application, but I am unable to solve the
> following problem:
>
> I open Form2 when I press a button on Form1 with the following code:
> dim abc as new Form2
> abc.show()
> me.hide()
>
> then on Form2 I arrange something and try to go back to Form1 with the
> following code:
> dim def as new Form1
> def.show()
> me.hide()
>
> The problem is, that Form2 does not appear. If I eliminate me.hide() from
> Form1, then it works, but I see a plenty of instances of the application
in
> the Memory Manager under Settings
>
> What am I doing wrong?
> All help is appriciated!
>
> Thank You
> Gergo
>
>
>
>
>
>
>
>


Relevant Pages

  • Re: How to show a form, which has been hidden
    ... Dim form As New Form2 ... Tim Wilson .Net Compact Framework MVP "Gergo" wrote in message ... > I open Form2 when I press a button on Form1 with the following code:> dim abc as new Form2 ...
    (microsoft.public.pocketpc.developer)
  • Re: Transparent Screen....
    ... The first form being the one ... they click a button on the original picture box form. ... compare the size of form2 to the picture box in form1. ...
    (comp.lang.basic.visual.misc)
  • Form not closing.
    ... Private Sub Button1_ClickHandles Button1.Click ... Dim frm As New Form1 ... Me.Close'hide first form ... The issue I wish to resolve is that Form2 doesn't close when Form 1 opens, it remains in the background until I close Form2. ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: How to pass information, classes between forms in Windows Application mode
    ... purposes it's the same as the parameterized copy constructor, ... Another way is the inheritance of forms, Form2: ... Form1 as you discuss below and as I further comment below. ... Form2 from Form1 is not passing the true object but a copy of the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Still confused about passing data between forms (or classes)
    ... public partial class Form1: Form ... public Form2 form2; ... private void button1_Click(object sender, EventArgs e) ...
    (microsoft.public.dotnet.languages.csharp)