Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide main window
Message
From
02/08/1999 08:37:34
 
 
To
01/08/1999 21:24:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00247495
Message ID:
00248784
Views:
15
>>>Hello all,
>>>How can i hide main Visual Foxpro window to show only my top level form ?
>>
>>You can remove the main VFP window after startup by setting _screen.visible = .f. proframatically. if you want the VFP main window to not appear at all, you must have a CONFIG.FPW either embedded in your compiled executable or present in the startup directory that conatins the line SCREEN=OFF
>
>Ed Rauh,
>Thank for your help !
>But i have problem that when i put line Screen=off in config.fpw, my forms not show or not visible, so my application like pending. How can i resolve the problem ?

If you're using Top-Level forms as indicated in your message, then the top-level form should appear IAC. A Top-Level form needs to have its ShowWindow propert set to 2 (this will make it display both in the taskbar and on-screen, and make your other forms appear in Top-Level forms by changing the ShowWindow property for them to 1.

I think you may not realize that the meaning of Toop-Level form has a very specific meaning in VFP; if your intent was to mean that your main form, a standard modal or modeless VFP form whose default ShowWindow mode was set as 0, should be the firs screen to appear, you need to change that to be a top-level form as mentioned above.

Alternatively, adjust the main VFP window to have whatever properties you want it to have and display it before bringing up any of your own forms.

>TIA
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform