Visual FoxPro 9 formset question
Posted on 2009-12-22
I have a VFP 9 application that utilizes a form set consisting of only two forms. The main form (form1) loads data into a grid on the form based upon an SQL query from data entered into a text box either by the user or a barcode scanner. The second form (form2) is hidden during the initial load of form1.
If the end user determines the data in the grid needs to be edited I have a command button that will make form2 visible and show form2. The second form queries and inventory master and displays the results of a cursor into a combo box. During testing of the application within VFP everything works perfectly.
However I now am ready to distribute the application via a setup program using InstallSheild. During the init method of form1 I have the following command: application.visible = .f. to turn off the main Visual Fox Pro window. I have the form1.showwindow property set to a top level form and form2.showwindow property set to: in top level form, I also have form2.alwaysontop property set to .T. My problem is if I distribute the application and call form2 from form1 it is not visible...I do not get an error, I just can't see form2. However if modify form1.init event and set application.visible = .t. when I call form2 it loads but it loads behind form1 into my task bar and I have to click on the task bar to bring the form to the forefront.
My goal is to obviously set application.visible = .f. and be able to load form2 into the top level form1. What I am missing? Any help would be greatly appreciated.