>>>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