Running a form from startup in pure VFP

The place to discuss FoxPro issues not directly related to ProMatrix.

Running a form from startup in pure VFP

Postby stecenko » Sun Sep 29, 2013 11:35 am

Hi,

In a pure VFP project where can I specify a form that is to run at startup.

I have just a single form to do just a single task and I want this form to run immediately.
Richard Stecenko
Interactive Computer Services Inc.
Victoria, British Columbia
204.453.2052
stecenko
 
Posts: 822
Joined: Mon Jun 21, 2010 8:06 pm
Location: Saanich, British Columbia

Re: Running a form from startup in pure VFP

Postby Gerhard Schmidbauer » Mon Sep 30, 2013 12:56 am

Hi Richard,

In your Main.prg have:

DO FORM frm_YourForm
READ EVENTS

HTH
Gerhard
Gerhard Schmidbauer
URANUS Software GmbH
Germany
Gerhard Schmidbauer
 
Posts: 152
Joined: Tue Jun 15, 2010 10:33 am
Location: Burtenbach, Bavaria, Germany

Re: Running a form from startup in pure VFP

Postby Bob » Mon Sep 30, 2013 6:13 am

If you want only the form to be displayed set the ShowWindow property to Show as Top Level Form, WindowType to Modal and in startup code: _vfp.visible = .f.
Bob
 
Posts: 718
Joined: Mon Jun 14, 2010 6:53 am
Location: Near Albany, NY


Return to Visual FoxPro

Who is online

Users browsing this forum: No registered users and 3 guests

cron