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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form

Status
Not open for further replies.

nguyen12

Technical User
Sep 30, 2001
42
US
Hi All. I need help. I have a printer control form, and the form had many options buttons. One of the option button is selected record, when the user click on this button the form will be linked to second form. I created a exit button on the second form, so when the user click on exit the second form will be closed and return to the first form. My problem is that when i come back to the first form from the second form i can't do the selected record to open the second form again. In order to do that i have to close the form and start again. I think i need to have a loop that the user can go to the second form again from the first form. Can someone give suggestion how to start the loop. Thank you.
 
It's very difficult to determine from what you have presented. Can you paste the code that opens the second form from clicking the button? The button's CLICK event I assume?

Ian
 
Here is the code to open the second form when the user click on the button that i named selected record. I had this code in the valid event of the buttons.
thisform.visible = .F.
release thisform
release windows form name
Can you give me some ideas how to write the loop by looking at the code. Thanks
 
Hmm...instead of the code you show, I would do it this way:
Code:
do form page2
If your second form's WindowType is set to "1-Modal" then it will prevent the user from going back to the first form until the second one is closed. Then you should be able to click the button to open the form again as many times as you like.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top