I have an app that uses a home-made active X control. This control uses certain tools that require a dongle for it to work properly. All well and good. The problem I am facing is that not all of my users want/have paid for the added functionality this control gives. I need for this control not to be on my form unless certain conditions are met. If the conditions are met, then I need it to be created.
I found a tutorial here: http://www.vbexplorer.com/VBExplorer/vb_feature/april2000/april2000.asp
. The first method it mentions is using a control array. This won't work for me, because you have to have a template control on the form. That defeats my purpose. The other method that is mentioned seems to allow for the spontanious creation of generic controls (i.e. text boxes, combo boxes, check boxes, etc).
I've seen references to GetObject/CreateObject, but that doesn't seem to apply to controls. I'd be happy to be wrong in this guess though. =)
Does anyone have a way to create a non-generic control at run time without needing one to be on the form originally?
0Thanks for any ideas.