Using Windows Forms Controls as ActiveX controls - DOTNET

This is a discussion on Using Windows Forms Controls as ActiveX controls - DOTNET ; Hi 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 ...

+ Reply to Thread
Results 1 to 3 of 3

Using Windows Forms Controls as ActiveX controls

  1. Default Using Windows Forms Controls as ActiveX controls

    Hi

    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?


  2. Default Re: Using Windows Forms Controls as ActiveX controls

    Lars,

    Probably is this page giving you the answers on your question.

    http://msdn.microsoft.com/msdnmag/is...h/default.aspx

    Cor

  3. Default Re: Using Windows Forms Controls as ActiveX controls

    "Cor Ligthert[MVP]" wrote:

    > Lars,
    >
    > Probably is this page giving you the answers on your question.
    >
    > http://msdn.microsoft.com/msdnmag/is...h/default.aspx


    No, it didn't answer my question, but it is still useful information to me.
    Thanks!


+ Reply to Thread

Similar Threads

  1. ActiveX controls
    By Application Development in forum CSharp
    Replies: 0
    Last Post: 11-27-2007, 03:09 PM
  2. Using standard Windows Forms controls as ActiveX controls
    By Application Development in forum DOTNET
    Replies: 4
    Last Post: 10-22-2007, 01:06 AM
  3. Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot
    By Application Development in forum DOTNET
    Replies: 4
    Last Post: 09-04-2007, 10:27 PM
  4. Replies: 3
    Last Post: 12-08-2006, 01:43 PM
  5. ActiveX Controls in .NET
    By Application Development in forum DOTNET
    Replies: 3
    Last Post: 10-20-2003, 07:14 PM