How to make your program use the Metro theme (DevComponents) 07-15-2013, 03:39 AM
#1
1) Create a New Project
![[Image: 2955ea0e71ff9e8eb65c55b8e8d17c7d.png]](http://gyazo.com/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]](http://gyazo.com/4cab1fd29de62384f90805c33e2e9184.png)
3) Name your project anything you want, I will be naming it "Metro" for the tutorial.
![[Image: 6b8afa9c49350ca87b53ad19d7f76a04.png]](http://gyazo.com/6b8afa9c49350ca87b53ad19d7f76a04.png)
4) Once your project is created, go ahead and click "My Project" in the Solution Explorer to the right.
![[Image: 3b6e5a92c9bb326c04aba61277c20046.png]](http://gyazo.com/3b6e5a92c9bb326c04aba61277c20046.png)
5) Click on the References tab.
![[Image: 3ba57ee91b5da5d27028a6a8ef836cfc.png]](http://gyazo.com/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]](http://gyazo.com/45e4cbc96ea06e735f2d873c28fd52f0.png)
And it should look something like this in the list of References
![[Image: 0e187c94fe72f9623b90f94350e6e22e.png]](http://gyazo.com/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]](http://gyazo.com/b0f6688f4e6ff437349b8322607855d1.png)
8) Click the down arrow to the left of "Form1.vb" and then click Form1.Designer.vb
![[Image: a3d4ae04602743385231116a2cca3ed6.png]](http://gyazo.com/a3d4ae04602743385231116a2cca3ed6.png)
9) Find this line of code near the top of the whole code
![[Image: 376ab836e5ac81b70dab95ba9811e5e5.png]](http://gyazo.com/376ab836e5ac81b70dab95ba9811e5e5.png)
and then change it to
![[Image: a9abe24a9b4fd6a2372561586d585371.png]](http://gyazo.com/a9abe24a9b4fd6a2372561586d585371.png)
10) You can again click on the "Show All Files" button.
![[Image: b0f6688f4e6ff437349b8322607855d1.png]](http://gyazo.com/b0f6688f4e6ff437349b8322607855d1.png)
and then double click on "Form1.vb"
![[Image: da1914de564646618bae0d6098a4ad7c.png]](http://gyazo.com/da1914de564646618bae0d6098a4ad7c.png)
There you go you are now finished!
![[Image: 97bc856100d14e51853b9ce3cb522e5a.png]](http://gyazo.com/97bc856100d14e51853b9ce3cb522e5a.png)
Also, When your trial expires I released the .dlls in elite so make sure to get ELITE!![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
![[Image: 2955ea0e71ff9e8eb65c55b8e8d17c7d.png]](http://gyazo.com/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]](http://gyazo.com/4cab1fd29de62384f90805c33e2e9184.png)
3) Name your project anything you want, I will be naming it "Metro" for the tutorial.
![[Image: 6b8afa9c49350ca87b53ad19d7f76a04.png]](http://gyazo.com/6b8afa9c49350ca87b53ad19d7f76a04.png)
4) Once your project is created, go ahead and click "My Project" in the Solution Explorer to the right.
![[Image: 3b6e5a92c9bb326c04aba61277c20046.png]](http://gyazo.com/3b6e5a92c9bb326c04aba61277c20046.png)
5) Click on the References tab.
![[Image: 3ba57ee91b5da5d27028a6a8ef836cfc.png]](http://gyazo.com/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]](http://gyazo.com/45e4cbc96ea06e735f2d873c28fd52f0.png)
And it should look something like this in the list of References
![[Image: 0e187c94fe72f9623b90f94350e6e22e.png]](http://gyazo.com/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]](http://gyazo.com/b0f6688f4e6ff437349b8322607855d1.png)
8) Click the down arrow to the left of "Form1.vb" and then click Form1.Designer.vb
![[Image: a3d4ae04602743385231116a2cca3ed6.png]](http://gyazo.com/a3d4ae04602743385231116a2cca3ed6.png)
9) Find this line of code near the top of the whole code
![[Image: 376ab836e5ac81b70dab95ba9811e5e5.png]](http://gyazo.com/376ab836e5ac81b70dab95ba9811e5e5.png)
and then change it to
Quote:Inherits DevComponents.DotNetBar.Metro.MetroForm
![[Image: a9abe24a9b4fd6a2372561586d585371.png]](http://gyazo.com/a9abe24a9b4fd6a2372561586d585371.png)
10) You can again click on the "Show All Files" button.
![[Image: b0f6688f4e6ff437349b8322607855d1.png]](http://gyazo.com/b0f6688f4e6ff437349b8322607855d1.png)
and then double click on "Form1.vb"
![[Image: da1914de564646618bae0d6098a4ad7c.png]](http://gyazo.com/da1914de564646618bae0d6098a4ad7c.png)
There you go you are now finished!
![[Image: 97bc856100d14e51853b9ce3cb522e5a.png]](http://gyazo.com/97bc856100d14e51853b9ce3cb522e5a.png)
Also, When your trial expires I released the .dlls in elite so make sure to get ELITE!
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
![[Image: xlbdwZT.png]](http://i.imgur.com/xlbdwZT.png)