vb.net 无法查看表单上的 dotnetbar 控件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19971543/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 15:48:50  来源:igfitidea点击:

Cannot view dotnetbar controls on form

vb.netobjectcontrolsdotnetbar

提问by illumi

I have a dotnetbar version 10.0.0.3 and when I add it on control toolbox window and drag it to my form this always happen.

我有一个 dotnetbar 版本 10.0.0.3,当我将它添加到控制工具箱窗口并将其拖动到我的表单时,总是会发生这种情况。

enter image description here

在此处输入图片说明

as you can see, LabelX1, TextBoxX1 and ButtonX1 are in the form, but in the design it doesn't.

如您所见,LabelX1、TextBoxX1 和 ButtonX1 在表单中,但在设计中却没有。

回答by Pieterjan De Clippel

I had the same problem. I think it's something about the dll.

我有同样的问题。我认为这与dll有关。

I installed DevComponents.DotNetBar2on my PC (it's a setup called DotNetBarSetup) and then I got the dll-file from the HD C:\Program Files (x86)\DotNetBar for Windows Forms\DevComponents.DotNetBar2.dll

我安装DevComponents.DotNetBar2在我的 PC 上(这是一个名为 的设置DotNetBarSetup),然后我从 HD 中获取了 dll 文件 C:\Program Files (x86)\DotNetBar for Windows Forms\DevComponents.DotNetBar2.dll

Next, you have to drag the dll-file from windows explorer to the toolbox in Visual studio.

接下来,您必须将 dll 文件从 Windows 资源管理器拖到 Visual Studio 的工具箱中。

That should do the trick. Hope this helps.

这应该够了吧。希望这可以帮助。

回答by Eranga Gamagedara

I had this problem in log time. finally i found the exact solution for this problem. The solution is install .NET Framework 3.5 (includes .NET 2.0 and 3.0) before install DotNetBar for windows form.

我在日志时间遇到了这个问题。最后我找到了这个问题的确切解决方案。解决方案是先安装 .NET Framework 3.5(包括 .NET 2.0 和 3.0),然后再安装 DotNetBar for windows form。

Hope this helps all the developers facing this problem.

希望这可以帮助所有面临此问题的开发人员。