>The reason it is going away is because you set it as Top-level. VFP coerces the Windowtype property to non-modal during instantiation when you set the ShowWindow to Top-level.
>
>Try creating two methods in your COM server. The first will create the form and leave it there. I don't think you need the modalness or the READ EVENTS. Be sure not to link it to anything that will go out of scope within the method or the form will go away. The second method will loop through the _Screen.Forms collection and clear out the form. You can call this from AutoCad when you don't need it anymore.
>
>I think this will work.
Yep, it worked. And I found something out. The form's modal setting is what is causing AutoCad to wait before redrawing it's screen. If the form is non-modal Acad works fine. Now my problem is the form has to be modal. When non-modal the user can click the autocad screen and bring it to the front. :(
Thanks for the help.
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!