>I already did. My code looks like this:
>
>
PROCEDURE command6.CLICK
>thisform.SetAll("Enabled",.F., "CommandButton")
>Do form SITECODE
>thisform.SetAll("Enabled",.T., "CommandButton")
>WAIT
>
>I put the WAIT in just to see if the pgm was pausing. As soon as the form opens, I see the wait message
If the form is a Top-level form, it can't be Modal. VFP coerces the WindowType property to 0 when the ShowWindow property = 2. Check the ShowWindow proeprty and change it to 0 and set the Desktop property to .T. if you want the form to operate outside of the VFP screen.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao