I'm trying to create a class module that encapsulates some dde commands that I use to interact with an older program. However, I need a control like a label or textbox in order to have dde functionality, and as far as I can tell, these cannot be created through code alone. Passing a reference to such an object works, but is crufty.
Is there any way to create one of these objects through code alone? I know you can add to an existing control array, but I want a completely new instance. I've tried
Dim something as New Label
which gives the error "Invalid use of New keyword".
Alternatively, is there a way to use DDE that isn't attached to one of these controls? I've seen http://www.angelfire.com/biz/rhaminisys/ddclient.html
commercial DDE classes that seem to do something similar, so it must be possible.