Tutorials Navigation

Tutorials :: New :: Popular :: Top Rated

Tutorials: 18,357 Categories: 12

Total Tutorial Views: 42,397,155

[C#] Change DevComponents MetroForm Border & Form Color

Tutorial Name: [C#] Change DevComponents MetroForm Border & Form Color  

Category: PC Tutorials

Submitted By: Skittle

Date Added:

Comments: 0

Views: 8,308

Related Forum: PC Building Forum

Share:

This tutorial will simply show you how to change the border and form color of the DevComponents.DotNetBar2 MetroForm. MetroForm is a popular form design as it looks clean and very professional. You will need to find the DevComponents.DotNetBar2.dll reference online for this tutorial.
Follow parts of this tutorial to add the DevComponents dll as a reference.
So you should have it as a reference and this as the top of your code:

using DevComponents.DotNetBar;

As the code to change the colors is quite long even though it is on one line, I like to refer to other specific namespaces:

using DevComponents.DotNetBar.Metro.ColorTables;
using DevComponents.DotNetBar;

You can put this code wherever you want the colors to change, I have mine in the Form_Load procedure:

StyleManager.MetroColorGeneratorParameters = new MetroColorGeneratorParameters(Color.WhiteSmoke, Color.DarkOrange);

The first parameter is the color of your form, and the second is the border color. I have these colors on one of my programs, it looks like this:
[ Register or Signin to view external links. ]
WhiteSmoke background, Orange border.

If you need any help with this, feel free to PM me

Ratings

Current rating: 2.45 by 40 users
Please take one second and rate this tutorial...

Not a Chance
1
2
3
4
5
6
7
8
9
10
Absolutely

Comments

"[C#] Change DevComponents MetroForm Border & Form Color" :: Login/Create an Account :: 0 comments

If you would like to post a comment please signin to your account or register for an account.