如何将Active X组件添加到C#项目 [英] How to add Active X component to C# project

查看:234
本文介绍了如何将Active X组件添加到C#项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2008在Windows窗体应用程序中创建。我需要向其中添加ActiveX控件。但是无法做到。

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

此示例是我尝试实现的 LINK 子主题与ActiveX控件互操作

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

以下是提供了实现它的步骤,但是我在Visual Studio中找不到以下提到的选项。

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


(1)显示表单后,右键单击工具箱,然后选择选择项目。

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

(2)单击 COM Components选项卡。

(2) Click the "COM Components" tab.

(3)找到您的ActiveX控件并勾选单击
确定框。

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

(4)现在它应该出现在工具箱上;将其拖放到
表单上并设置其属性。

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


推荐答案


  • 打开要添加Activex控件的Windows窗体文件。

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

      右键单击任何工具

      该菜单包含选择项目

      单击它,您会在弹出窗口中看到 COM Components选项卡。

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

      选择您要使用的任何COM组件

      Select any COM component that you want to add.

      然后将其显示在工具框中。

      Then it appears on the tool box.

      拖动并

      这篇关于如何将Active X组件添加到C#项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆