>>I don't want the vfp system window (include system menu and top bar) appear when i run my form. I just want the form window appear when i run the application (exe). I have create a menu in my form so i don't need the system menu and system window.
>> Anyone know how to close the vfp system window? why i click the closeable button("x") on the right top can't end my program while running the exe?
>
>Put SCREEN=OFF in a config.fpw if you're using a top-level...
Even if you're not using a top-level form, put it in there - you can start with
SCREEN=OFF, monkey about with the default VFP screen, and then make it visible once the application is launched by setting
_screen.visible to true.
One thing to remember; if you start with
SCREEN=OFF, make certain to either set
_screen.visible = .t. or launch a top-level form quickly; until there's a windows context, messages won't display and VFP won't respond to Windows messages from SendMessage() or PostMessage(), and there's nothing sitting on the Windows Taskbar to let you know something is running; you have to get at things through Task Manager to shut down if an error occurs, and it's a messy TerminateProcess() shutdown if you do kill it that way.
Ed