>hello everyone,
>
>in the form designer i have set a form to modal, and added some codes on it.
>
>then I run the form in another program by "do form MyForm to MyVar", it says I can't use the "to" clause because MyForm is not modal...
>
>also when i run the .exe, the form disappear immediately after it show up -- exactly the same as a modeless form..
>
>But why? What did I do that cause the modal form to act as a modeless one? Any idea please?
>
>Thanks in advance,
>Jimi
Jimi,
Sounds it's a toplevel form. Toplevel forms can't be modal. Make it InTopLevel if that's the case.
Cetin