如何添加一个引用组件在C#中?组件

2023-09-03 05:04:58 作者:Yoke(羁绊)

我收到错误:

类型system.windows.controls.control在未被引用的程序集定义。

the type 'system.windows.controls.control' is defined in an assembly that is not referenced".

如何将引用添加到组装?

How to add a reference to assembly?

推荐答案

见< /一>:

See:

在Solution Explorer中,双击我的项目节点项目。

In Solution Explorer, double-click the My Project node for the project.

在项目设计,单击引用选项卡。

In the Project Designer, click the References tab.

点击添加按钮打开添加引用对话框。

Click the Add button to open the Add Reference dialog box.

在添加引用对话框中,选择选项卡,表示要引用组件的类型。

In the Add Reference dialog box, select the tab indicating the type of component you want to reference.

选择您要引用的组件,然后单击确定。

Select the components you want to reference, and then click OK.