>>>UPDATE 2: This "main" form is used in another application as Modal form. And the property ShowWindow in that other application is 0 (not 2).
>Is it possible to change these properties in code when creating the object of the form when it has to be Modeless and 2 - As Top Level Form?
>
>Some of VFP's form display properties can't be changed after form creation commences, so you'd need to subclass if you can't edit the "main" form directly. This is a nuisance if it's a scx rather than a class in a vcx or prg, but I don't know any other way if you need more than one version of these settings, even borderstyle.
>
>HTH. Also, experiment with desktop= setting that can make the parent form look like a native form for your OS.
I will experiment with subclassing. Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham