Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form minimising when RUN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00413359
Message ID:
00413391
Vues:
15
>I have a Top level form which needs to RUN an exe to get Word going behing the scenes with a specific Template. I want this exe to be run once the form is visible so I added the following code to the GotFocus() method :
>
>IF NOT thisform.lWordrun
> ! /N tawordcontrol.exe "Letter Task Accelerator.dot"
> thisform.lWordRun=.T.
>ENDIF
>DODEFAULT()
>
>However - this causes the form to minimise on the Task bar.
>
>If I switch the code to the Activate instead - then it doesn't minimise the form.
>
>Note : I didn't write the .exe myself but the chap who did says it runs fine on his PC without minimising the Fox Form.
>
>We're both using VFP 6 SP4.
>I'm using NT4 SP4 and he's using Windows 98 (I think)
>
>Any advice gratefully received.

The RUN command allows you to specify the window state by indicating a numeric value immediately after the /N. For example,
RUN /N3 C:\WINDOWS\NOTEPAD.EXE && Run notepad maximized and active
RUN /N7 C:\WINDOWS\NOTEPAD.EXE && Minimized and inactive
A complete list is available in the documentation.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform