>>Is there away to change a modal form to a modeless from at run time from a .prg?
>
>Hi Cicilia,
>
>You can't change the setting once the form is displayed, which means that the init method is a perfect place to set the windowtype property.
>
>You can pass it as a parameter to the form (i.e. do form yada with blah), and in the init method something like
lParameters tiModality
>This.WindowType = tiModality
>dodefault()
Good luck!
>Alex
Yes, you can.
See FAQ#7921 "How can I make my form Modal/Modeless on the fly". I also published this tip in December 2000 FPA.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison