>Hi all,
> I would like to create an executable of a simple project containing only one form in vfp6 sp5. When i do so, the form opens and close automaticaly when i run the executable. When I add a code module containing
>
>DO FORM myForm
>READ EVENTS
>
>and I set it to main, it works but it is kind of ugly. I would like to know if there is a way to do it without having to add a code module (if yes, how)(if not, how to set the program to run in maximized mode.)
>
>Thank you all
You can control the appearance of a VFP-Form with the following command line
"_SCREEN.WindowState = n" Where n is 0 if the window should appear normal, 1 if it should be minimized, and 2 if it should be maximized.
If this command is used as the first statement in the Activate Event of a form, the form comes up as indicated above
Bye
********************************
VFP, VB, VC++ Programmers
Makers of the ==>TheMiL<== engine
for intra- and internet data processing
********************************