Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom MainMenu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Divers
Thread ID:
00121284
Message ID:
00121287
Vues:
16
Hi Dan

>>I am tring to use a form I designed as a mainmenu. I would like the exe program (the form is set as the first prog in the PM) to run my program WITHOUT bringing up the VFP5 window, ect, just the MAIN MENU Screen (Consisting of all command buttons (4) ).
When I run the exe, a small VFP5 window first comes up then my Menu shows, the quickly exits back to windows. The same thing happens if i make it an app, but it doesnt exit to windows, but runs the menu form.
<<

You are missing the event loop that keeps your app running and your objects from going out of scope. You need to do several things:

1. Set the ShowWindow Property of the form to As Top Level Form

2. At the end of the form's init:
READ EVENTS

3. What ever closes the app (button, queryunload event, etc.):
CLEAR EVENTS

2. In your CONFIG.FPW file, put:
SCREEN = OFF
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform