MetroFramework in VB 2013, certain controls don't appear on form

帅比萌擦擦* 提交于 2019-12-12 01:48:51

问题


I installed the MetroFramework in VB 2013 via NuGet and I have it working partially. Some of the controls will not appear on the form:

MetroTile, MetroTextBox, MetroTabControl, MetroStyleManager, MetroCheckBox, MetroLabel, MetroProgressBar, MetroScrollBar, MetroRadioButton, MetroProgressSpinner, MetroButton

If I drag and drop a control onto the Form, its control will not appear... a gray box appears at the bottom of the design view. Then that control I attempted to put on the Form appears in the gray box with a small icon and its name by it. If you double click on the control in the gray box, it will open the Form.vb events/objects, but it will not initialize an event for that control.

There is not a lot of info on the net for the MetroFramework, and nothing in relation to my problem.

How do I make those controls appear on the form?

And, what exactly is that gray box on the bottom with the non-viewable controls? I have never seen it before.


回答1:


In the Manage Nuget Packages dialog, there are three or 4 versions of the Metroframework... download the one by Dennis Magno only; it will have a date of 9/16/14 ... it works the best. I'm using VS 2013, .NET 4.5




回答2:


You should add design.dll to your references.



来源:https://stackoverflow.com/questions/29129857/metroframework-in-vb-2013-certain-controls-dont-appear-on-form

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