-
The main program is an ordinary program, and there is a shortcut menu when you click it in the project, just select the "main program" in it.
In addition, the main program is generally the initialization of the written program, such as the title of the main window, the background, the main menu, or the form that runs first, the command that runs when exiting, and so on.
Note that you need to add a sentence after all initializations have been completed.
read even
Otherwise, the window will flash by and nothing will be done.
-
In the Project Manager, right-click on the program or form you want to set up, and select Set as Master from the context menu. There can only be one main program in a project.
-
_"Grading Procedures"
Swap this to the title you want to display on the first form.
"& The VFP window is not displayed.
do form main
Here main is the name of the form you want to run first: read events
-
If you're willing to pay for it, I'll help you debug it, it's easy.
-
Just like any other program, just click on the email in the project and make it the main file.
-
Run the splash screen form frmbegin, generally check the user and password, run the main interface form frmlogin if it is correct, if it is incorrect, exit the foxpro program, do not run the main interface form.
After exiting the splash screen form frmbegin, the landlord's program runs the main interface form frmlogin.
If you want to check the user and password, you must set it in the splash screen form frmbegin: if correct, exit the splash screen form frmbegin; If you make a mistake, you will be able to exit the FoxPro program directly.
-
All applications must have a master file that sets the starting location of your application, performs the main task, and links the application to other components.
Note: You can only set up one master file in a project.
When you use the Application Wizard to create your own application project, the wizard will automatically create the master file for you. Of course, you can also modify the master file created by the wizard or you can specify the file in another project as the master file.
The Application Wizard also creates an application object to run your application. The main program, created by the Application Wizard, includes sections for initializing and configuring the application objects.
Set up a master file for one application.
1. Open the project file of your application.
2. In the project manager, the node where the file you need is located.
3. Click to select the file.
4. In the Project menu, click the Set Master File option.
In the Project Manager, the name of the master file is displayed in bold.
Note: The master file you set up will be automatically included in the application during the compilation process, and will be marked as a read-only attribute when the application is compiled.
-
Of course, specify the main program file in the project. Then let's combine it into an exe file.
-
There are two programs in the **-program of the project, 1. The first one is named main, and the content is as follows:
Grade Stats Registration Code Generator"
Swap this to the title you want to display on the first form.
"on shutdown quit
do form main
Here main is the name of the form you want to run first.
read events
2. The second one is named quit and reads as follows:
clear events
quit3, then right-click on the main program file and select "Set Master File".
4. Open the first run form (hereinafter referred to as the home page) and set these values in the properties.
alwaysontop .t.
autocenter .t.
borderstyle 2 - Fixed dialog.
maxbutton .f.
showwindow 2 - as a top-level form.
5. For other paginated form attributes, the first 4 attributes have the same value, and the last one is changed to "1 - in the top-level form".
6. The height and width of the home page should be set a little larger in the attributes, such as 800*600, and the height and width of the page should not exceed this value.
7. Select the unload event item in the method program of the home form, double-click, and enter the command quit in it.
8. Close all forms, open Project Designer, click "Serial Executable" on the right, "Operation" is the third "Serial Executable", then check the first three items of "Options", and finally click "OK".
-
Create a new program file and enter the environment configuration in it. Then add the file to the project file and set it as the master file (right-click on the file you want to set as the master file).
-
How to hide and show the system toolbar When the published application is run, I'm afraid no programmer wants the user to see the toolbar of the Visual FoxPro development environment, but Visual FoxPro does not provide a command to close all the toolbars, so how to do it? 19 How to make a custom toolbar.
You can go to them, this little problem, for free.
You can go and try it. >>>More
The web page is the carrier of content, services and other information, just like the bus passenger station and the bus, which is equivalent to the bus station, and the web page is equivalent to the bus; >>>More
Establishing a sound and effective management model can be divided into the following steps: >>>More
Recognize yourself who is not confident. Always feel like someone is scolding you behind your back? What are you always ashamed of? >>>More
Ways to build teacher authority:Cultivate good moral character...Good moral character is the basic condition for teachers to gain prestige. >>>More