R
Randy
Hi,
I am trying to do something that should be EASY but is not working for
me for some reason.
My application opens to a Main form, similar to a SwitchBoard in Access.
What I am trying to do, and I may not be doing the best thing, is hide
the Main form, and open whatever form the user is trying to use. This
works fine with the following sample code:
Dim Second As New Form2()
Me.Hide()
Second.Show()
My problem is closing form2 and reopening the Main form. I tried using
code like this:
Dim first As Form1
first.Activate()
Me.Close()
Nothing I try works. Tee second form closes, but the first one never
shows. I have tried doing the second form code like the one I used from
the Main form, but nothing works.
HELP!
Randy
I am trying to do something that should be EASY but is not working for
me for some reason.
My application opens to a Main form, similar to a SwitchBoard in Access.
What I am trying to do, and I may not be doing the best thing, is hide
the Main form, and open whatever form the user is trying to use. This
works fine with the following sample code:
Dim Second As New Form2()
Me.Hide()
Second.Show()
My problem is closing form2 and reopening the Main form. I tried using
code like this:
Dim first As Form1
first.Activate()
Me.Close()
Nothing I try works. Tee second form closes, but the first one never
shows. I have tried doing the second form code like the one I used from
the Main form, but nothing works.
HELP!
Randy