PDA

Click to See Complete Forum and Search --> : closing multi-form apps


white_as_snow
Oct 5th, 2002, 02:32 PM
i feel stupid starting 2 threads inside of 15 minutes. oh well.

when i show a second form in a single app, like this:

Dim fred as New Form2()
fred.show()
Me.Hide()

and then am ready to either close the app or go back to form1, i can't make it work. when i close form2, it closes and leaves form1 residing in the memory, but without a taskbar button or anything. i can only close it w/ the task manager. not to mention i can't even figure out how to even how to get back to form1.

MrPolite
Oct 5th, 2002, 02:46 PM
well this isnt the best way to do this, but it works:

Dim frm as new Form2
me.hide
frm.ShowDialog ' it waits until form2 is closed and then it runs the next line
me.show

white_as_snow
Oct 6th, 2002, 09:31 AM
thanks

*resolved