There are a few ways. You could do it as a modal form or
form.AllwaysOnTop = .T.
for example.
Note that your
_screen.visible = .F.
will cause flicker. It is better (in an exe) to compile it with a config.sys file containing the line
screen=off
HTH
>I have a small program with one form, the program consists of one prg (set as main) and the form. Here is the code for the .prg
>
>>_screen.visible = .F.
>_screen.caption = "My Program"
>
>do form main
>read events
>
>
>The form is a pretty basic form and has the following properties.
>
>>AutoCenter = .T.
>BorderStyle = 2
>MDIForm = .T.
>ShowWindow = 2
>
>
>Everything else for the form is set to the default. My problem is that when I compile and run my executable the form is not launched with the focus set to it. If I have other apps open half the time it will open underneath them. How can I get the form to launch with focus on it?