Actually .ShowWindow is Read-Only at runtime. I went with Ed's suggestion of putting the CREATEOBJECT() in the .Activate() event of my top level form. I also use a custom property to ensure this is only done once and not every time.
>Oops... I see you are trying to create an In Top Level Form. Scratch the comment about Top Level Forms...
>
>When you invoke the Show() Method, you need to pass the ShowWindow argument. Change you call to: form.show(1)
>
>
>>I have a modal lookup form class with its .ShowWindow property=1 (In Top-Level Form). In the Init of my top level form I use CREATEOBJECT() to create the lookup form object but when I tried to .Show() it nothing happens. When I traced it in the debugger the objects .ShowWindow=0. Any ideas on what I'm doing wrong? TIA
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.