>Hi All,
>
>I am getting a very unusual error during form init(). I'm using a popular framework and when a form is called in "ADD" mode the framework automatically sets the form WindowType Property to 1(modal) in the init() code. In 99.99% of the forms I have built, this works flawlessly.
>
>I have a couple of forms however that over the course of development have started choking on the line that sets the WindowType property. The error returned is "Property WINDOWTYPE is read-only". According to the on-line help, you cannot change the WindowType setting once the window has been displayed. This is what is strange, the form has NOT been displayed and has no dangling object references to it.
>
>During my diagnosis of this problem I have cold booted, gone directly to the offending form and run it. BOOM - error.
>
>I have recompiled all files, run the form. BOOM - error
>
>I have "used" the .scx excl and packed, run the form. BOOM - error
>
>I've restored prior versions from SourceSafe and rebuilt the missing pieces with success a couple of times, but that's not really a desireable option this time. So I'm asking for the guru's to help me out. What do you think is causing this and what else can I try?
>
Are you calling the SetFocus() method of any object on the form from the init?
Erik Moore
Clientelligence