|
-
Mar 18th, 2007, 11:55 PM
#1
Thread Starter
New Member
closing/opening forms
I am trying to incorperate an open/save function in a program I'm making. I have frmNew that opens on top of my main form(form1). It then has an input box to enter a filename. Once you click on the OK command button my program checks to see if the file exists. My problem is on the next form that opens if the file is found , frmPopup, I need to be able to click cancel and go back to just frmNew with an empty input area. I can clear the input but I'm not quite sure how to close frmPopup and so that it goes back to the begining of frmNew.
THX
-
Mar 19th, 2007, 12:12 AM
#2
Frenzied Member
Re: closing/opening forms
I think you can just put:
Me.Hide
frmNew.Show
In the Click event of your Cancel Button.
Not sure if I understood your question correctly, but give it a try.
Good Luck
-
Mar 19th, 2007, 12:25 AM
#3
Re: closing/opening forms
Thats all you need to put in the Cancel button of frmPopup.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Mar 19th, 2007, 06:19 AM
#4
Re: closing/opening forms
Unloading is the best solution as it will reset everything fresh for the next time you need the form.
Just hiding it could leave data in variables that you might not want.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|