How do you create the form programmatically?
Could you create a class instead?
I assume you could change the DESKTOP property of a class after you instantiated but before you SHOW() it:
loLookup = NEWOBJECT("MyLookupForm", "HereItIs")
loLookup.DESKTOP = .T.
loLookup.SHOW(1)
something like this I could imagine.
HTH
>Hi there,
>I have created a function to browse anything (i.e accounts, items) and return a value. It is a form which is created programmatically and gives users a quick lookup into the account name, and selection by clicking the first characters of this account. The problem I face is that the main calling form is a desktop form and when calling this function I cannot set its desktop property to .T. at runtime. I have tried showwindow and other solutions but the new auto createed form is just hiding somewhere and does not show itself on the screen.
>
>Any ideas.
>
>You are welcome
>
>Jonathan
Christian Isberner
Software Consultant