Sinisterly
How to make your program use the Metro theme (DevComponents) - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: How to make your program use the Metro theme (DevComponents) (/Thread-How-to-make-your-program-use-the-Metro-theme-DevComponents)



How to make your program use the Metro theme (DevComponents) - Blue - 07-15-2013

1) Create a New Project
[Image: 2955ea0e71ff9e8eb65c55b8e8d17c7d.png]

2) Select Windows Form Application in the list of options. It can be any .NET Framework I am pretty sure, but I recommend just using whatever is selected by default.
[Image: 4cab1fd29de62384f90805c33e2e9184.png]

3) Name your project anything you want, I will be naming it "Metro" for the tutorial.
[Image: 6b8afa9c49350ca87b53ad19d7f76a04.png]

4) Once your project is created, go ahead and click "My Project" in the Solution Explorer to the right.
[Image: 3b6e5a92c9bb326c04aba61277c20046.png]

5) Click on the References tab.
[Image: 3ba57ee91b5da5d27028a6a8ef836cfc.png]

6) Click "Add" and browse to the location of your "DevComponents.DotNetBar2.dll" which is usually in "C:\Program Files (x86)\DotNetBar for Windows Forms".
[Image: 45e4cbc96ea06e735f2d873c28fd52f0.png]

And it should look something like this in the list of References
[Image: 0e187c94fe72f9623b90f94350e6e22e.png]

7) Next, click the "Show All Files" button in the Solution Explorer. It is not labeled unless you hover over it.
[Image: b0f6688f4e6ff437349b8322607855d1.png]

8) Click the down arrow to the left of "Form1.vb" and then click Form1.Designer.vb
[Image: a3d4ae04602743385231116a2cca3ed6.png]

9) Find this line of code near the top of the whole code
[Image: 376ab836e5ac81b70dab95ba9811e5e5.png]
and then change it to
Quote:Inherits DevComponents.DotNetBar.Metro.MetroForm
[Image: a9abe24a9b4fd6a2372561586d585371.png]

10) You can again click on the "Show All Files" button.
[Image: b0f6688f4e6ff437349b8322607855d1.png]

and then double click on "Form1.vb"
[Image: da1914de564646618bae0d6098a4ad7c.png]

There you go you are now finished!

[Image: 97bc856100d14e51853b9ce3cb522e5a.png]

Also, When your trial expires I released the .dlls in elite so make sure to get ELITE! Smile



RE: How to make your program use the Metro theme (DevComponents) - Hexology - 07-15-2013

Nice, I know someone is attempting to create a metro theme at the moment, but I like dotnetbar's better.


RE: How to make your program use the Metro theme (DevComponents) - Blue - 07-15-2013

(07-15-2013, 03:49 AM)Hexology Wrote: Nice, I know someone is attempting to create a metro theme at the moment, but I like dotnetbar's better.

Yeah, I released all that in elite. Wink


RE: How to make your program use the Metro theme (DevComponents) - ZherkTG - 07-15-2013

Awesome tutorial. If i were to buy Emerald would i have access to the Elite section also?


RE: How to make your program use the Metro theme (DevComponents) - Blue - 07-15-2013

(07-15-2013, 07:54 AM)ZherkTG Wrote: Awesome tutorial. If i were to buy Emerald would i have access to the Elite section also?

Yes Indeed you would, Ask Sap to be sure of it though.


RE: How to make your program use the Metro theme (DevComponents) - ZherkTG - 07-15-2013

Alright I'll ask, thanks.


RE: How to make your program use the Metro theme (DevComponents) - Platinum - 07-15-2013

Omg awesome tutorial mate!!! (L)(L)


RE: How to make your program use the Metro theme (DevComponents) - Eternity - 07-15-2013

Wow, I've actually been wondering why Metro wasn't in VB, but now i know Tongue

Thanks for sharing Smile


RE: How to make your program use the Metro theme (DevComponents) - Blue - 08-23-2013

Hopefully more people will start using these things since we merged!