简体   繁体   English

如何在 Windows Form C# 中添加对 Visual Basic 电源包的引用

[英]How do i add reference to Visual Basic power packs in Windows Form C#

I have installed Visual Basic Power packs package and want to reference the VisualBasic.PowerPacks dll but it is not visible.我已经安装了 Visual Basic Power Packs 包并想引用 VisualBasic.PowerPacks dll,但它不可见。 Using VS 2012 version.使用 VS 2012 版本。

Thanks谢谢

The DLL is located here: C:\\Program Files (x86)\\Microsoft Visual Basic 2005 Power Packs\\3.0 DLL 位于: C:\\Program Files (x86)\\Microsoft Visual Basic 2005 Power Packs\\3.0

DLL Name: Microsoft.VisualBasic.PowerPacks.dll DLL 名称: Microsoft.VisualBasic.PowerPacks.dll

Instructions to add reference: 说明以附加参考:

  1. Right-click References右键单击引用
  2. Click Add Reference单击添加引用
  3. Click Browse at the bottom点击底部的浏览
  4. Select the DLL file.选择 DLL 文件。

Simple and easy way to reference a dll is:引用dll简单方法是:

  1. In Solution Explorer, select the project.在解决方案资源管理器中,选择项目。
  2. On the Project menu, click Add Reference.在项目菜单上,单击添加引用。 The Add Reference dialog box opens.添加引用对话框打开。
  3. Select the tab indicating the type of component you want to reference.选择指示要引用的组件类型的选项卡。 In your case, you will have to select COM tab.在您的情况下,您必须选择COM选项卡。

An article on MSDN to include installed libraries. MSDN上的一篇文章,包括已安装的库。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Visual Studio 2022 在 Windows 表单应用程序中查看和编辑 Visual Basic Power Pack 形状? - How do I view and edit Visual Basic Power Pack shapes in a Windows Form app with Visual Studio 2022? 初始化 C# Visual Studio Windows 窗体应用程序后,如何更改窗体的视觉效果? - How do I change the visual of a form after it has Initialized C# Visual Studio Windows Form App? C#如何在Windows窗体应用程序中的字符串内部进行基本数学运算 - C# How do I do some basic math inside of a string in my Windows Form Application 如何在c#中调用visual basic 6.0方法? - How do I call a visual basic 6.0 method in c#? 在多行中显示记录-Visual Basic Power Packs DataRepeater控件 - Displaying records in multiple rows - Visual Basic Power Packs DataRepeater control 如何将控制台应用程序中的变量值传递给 C# 中的 windows 表单应用程序(Visual Studio) - How do i pass a variable value from Console application to windows form application in C# (visual studio) 我如何在代码中检查是否选中了我的 DataGridView 复选框。 c# 视觉工作室 Windows 窗体 - How do I in code check that my DataGridView checkbox is selected. c# visual studio Windows form 如何在 Visual Studio 的 C# 中创建服务引用? - How do I create a Service Reference in C# in Visual Studio? 如何在Windows窗体中添加多个文本框的值。 C#,Visual Studios - How do I add values of multiple text box in windows forms. C#, Visual Studios 如何在 30 分钟后关闭 windows 表单? | 视觉工作室 C# Windows Forms App.Net 框架 - How do I make a windows form close after 30 minutes? | Visual Studio C# Windows Forms App .Net Framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM