Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Main program form looses focus when openning?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00623848
Message ID:
00623861
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
There are a few ways. You could do it as a modal form or form.AllwaysOnTop = .T. for example.

Note that your _screen.visible = .F. will cause flicker. It is better (in an exe) to compile it with a config.sys file containing the line screen=off

HTH


>I have a small program with one form, the program consists of one prg (set as main) and the form. Here is the code for the .prg
>
>
>_screen.visible = .F.
>_screen.caption = "My Program"
>
>do form main
>read events
>
>
>The form is a pretty basic form and has the following properties.
>
>
>AutoCenter = .T.
>BorderStyle = 2
>MDIForm = .T.
>ShowWindow = 2
>
>
>Everything else for the form is set to the default. My problem is that when I compile and run my executable the form is not launched with the focus set to it. If I have other apps open half the time it will open underneath them. How can I get the form to launch with focus on it?


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform