How to add Active X component to C# project

可紊 提交于 2019-12-03 21:45:18

问题


I'm creating in a Windows forms application using VS2008. I need to add ActiveX controls to it. But unable to do so.

this example is what i try to achieve LINK sub topic "Interop with ActiveX Controls"

The following are the steps provided to achieve it, but i cant find the below mentioned options in my Visual studio.

(1) When you have a form displayed, right-click the Toolbox and select "Choose Items".

(2) Click the "COM Components" tab.

(3) Locate your ActiveX control and tick the box for it anc click "OK".

(4) Now it should appear on the toolbox; drag and drop it onto your form and set its properties.


回答1:


  • Open the windows form file that you want to add an Activex control.

  • Right click on any tool on the tool box.

  • That menu contains "Choose Items".

  • Click on it and you can see the COM Components tab on the pop up window.

  • Select any COM component that you want to add.

  • Then it appears on the tool box.

  • Drag and drop it on to the form.



来源:https://stackoverflow.com/questions/9678814/how-to-add-active-x-component-to-c-sharp-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!