Topic: open and close form

How To open / close form after press button ?

* I have 2 Forms , what I looking for is:
1- when I press the button go to form 2 it will close form1 and show form 2 only
2- when I press the button go to form 1 it will close form2 and show form 1 only

Re: open and close form

Look at here:


http://myvisualdatabase.com/forum/viewtopic.php?id=1547


Feel free to use the site search

Re: open and close form

Thank you it works fine
Note : I have to remove button action from show form to nothing and depends on code only

Re: open and close form

Hello Haythem, Hi Sparrow,
You don't actually need to remove the 'show form' button action if you prefer to keep it.
You can 'mix and match' by using the 'show form' button action and then, in your script, you only need to add 'form1.hide'.
Derek.