Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Custom theme controls not showing in designer.

Hey guys, im not one to usually ask for help around here, but i've run into an issue i cant seem to fix and i cant find a working solution online.

I compiled the ModernUI .dll and imported it into my project. It skins my form perfectly but when i drag on controls it doesn't display but goes onto the panel below where you usually see timers. The only thing that seemed to work was a ComboBox.

Would anyone happen to know why they wont display & possibly how to resolve the issue? Any help would be great! 🙂
I've never heard of ModernUI. Can you link us to the source?
(Mar 28, 2016 04:33 AM)Hawk HF Wrote:  I've never heard of ModernUI. Can you link us to the source?

Its the MetroFramework ModernUI, you can find it here: https://github.com/dennismagno/metroframework-modern-ui
I'm not exactly sure what's causing this. The controls seem to inherit from relevant classes.
Code
public class MetroButton : Button, IMetroControl

It may be something to do with this line (can be found in most of the controls):
Code
[Designer("MetroFramework.Design.Controls.MetroTextBoxDesigner, " + AssemblyRef.MetroFrameworkDesignSN)]
You may have added them incorrectly. Right click toolbox -> choose items -> browse -> select lib -> rebuild

Also have your form inherit from MetroForm instead of the standard Form control. That might have something to do with it.
(Mar 28, 2016 05:25 AM)Odus Wrote:  You may have added them incorrectly. Right click toolbox -> choose items -> browse -> select lib -> rebuild

Also have your form inherit from MetroForm instead of the standard Form control. That might have something to do with it.

My form is already Inheriting from the MetroForm, and i tried to reinstall them, still unsuccessful. Thanks for the help though.
(Mar 28, 2016 05:33 AM)Specs Wrote:  My form is already Inheriting from the MetroForm, and i tried to reinstall them, still unsuccessful. Thanks for the help though.

Hrm. Try it on a new project and install from NuGet.
(Mar 28, 2016 05:35 AM)Odus Wrote:  Hrm. Try it on a new project and install from NuGet.

Okay, i forgot to try NuGet, ill try now & let you know how it goes.

EDIT: Yes, installing from NuGet seemed to get it to work for me, thank you @Odus


Possibly Related Threads...
Thread / Author Replies Views Last Post
by AnonynukSep 28, 2026 10:32 AM 2 43 Sep 28, 2026 10:32 AM
Last Post: Anonynuk
[.NET] by ExproMar 25, 2022 03:58 AM 8 734 Mar 25, 2022 03:58 AM
Last Post: SaketSaket
[.NET] by NaywynJun 7, 2020 12:33 AM 32 3,017 Jun 7, 2020 12:33 AM
Last Post: savaganka