How to use VC++ control in C#?

  • Thread starter Thread starter Owen Woo
  • Start date Start date
O

Owen Woo

I have built many controls in VC++, how can I use these control in C#
without re-programing?
Thanks.
 
Owen,

If you developed them so that they are ActiveX controls, then you can
easily import them using the AXIMP tool in the framework. AXIMP will create
..NET wrappers that can be used to create the control.

If they are not ActiveX controls, then the only other option you have is
to derive a class from Control, and override a number of methods/properties
(CreateParams, WndProc, etc, etc) to handle the creation and message
handling that the control requires. You will also have to create the
appropriate properties, methods, and events that the control needs as well.

Hope this helps.
 
Back
Top