>I am attempting to make my VB interface dynamic at run time (more or less so
>it is controllable by a scripting language and so i don't need to recompile
>for every new feature). For example, I have created an ActiveX exe with a
>class called Class1 with the following methods:
>Public Function AddForm() As Variant
> Set AddForm = New Form1
>End Function
>Public Function AddMDIForm() As Variant
> Set AddMDIForm = New MDIForm1
>End Function
>I am able to create forms this way, and to a certain extent control them.
>There are certain methods of forms, however, which I cannot control. For
>example if w is an instance of Class1, then
>f1 = w.AddForm()
>will add a form, and things like
>f1.Visible = 1
>f1.Caption = 'My New Caption'
>work fine (in this case showing the form and changing the caption). I can
>also add an mdi form like
>mdi = w.AddMDIForm
>. I cannot, however, get something like
>f1.MDIChild = 1
>to work. So, what is the difference between one method an another? is VB
>simply blocking me from making a clone, or is there some substantive
>difference?
>Thanks for any insight,
>doug