Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to open a form from another form

Status
Not open for further replies.

Ricardoco

Technical User
Jan 17, 2007
1
GB
Hi there im new at this so can you be kind in any reply you may choose to give. That out of the way here is my question...
I am making a database using visual dbase, I have two forms in my project at the moment the default form just has 6 buttons that i have given pictures I would like to click one of these picture buttons and that would open the second form and close the default form, and although I can handle the visual side of things when I select onclick under events in the inspector in the first form button, I have no idea where to go next, any help would be great!
 
Dear Ricardoco,

I'm new to this forum, so you have probably solved your problem already. Otherwise you could try:

In your first form, the OnClick event on the selected button should open the second form (i.e. "do secondform.wfm"). This will open the second form and give it focus. Using the event for the first form (the form itself) OnLostFocus type "form.close()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top