General information
Category:
Coding, syntax & commands
Title:
Dynamically create and show a form
Hi,
I have a form with a custom control (a subclass of ListBox) which will create a form on the fly (to do some editing) with a series of call to ox=CreateObject("form"), ox.addobject("txtName","TextBox"), etc, and then use ox.Show(1) to show it.
There is no problem when running in the IDE, but when I built the EXE and run it, that form does not show up at all. Later I found out that form is indeed shown up in the Screen but my application has the Screen made invisible by setting SCREEN=OFF in the config.fpw. FYI all the regular forms in my application have MDIForm=.t.
Is there a way to create a form dynamically in that custom control and making the form not showing up in the VFP Screen? Or is there any better way to do it?
TIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only