Using Windows Forms Controls as ActiveX controls
am 15.10.2007 11:36:00 von larsgregersenHi
I have created a couple of Windows Forms controls in C# either by
composition or by subclassing existing controls. I'm able to use these
controls as ActiveX controls by using "register for COM Interop". I then
access the control in a old application written in C++ (using VS 205). This
works fine!
What if I wish to use a standard control, e.g. TreeView, as an ActiveX
control? I can of course subclass the control, without changing the
behaviour, but surely there must exist an easier way?!?!
Are the Windows Forms Controls already exposed as standard AxtiveX controls?
Are there any tricks or examples on how to handle events?