This tutorial will introduce you to Material Skin for .Net Windows Forms. You will learn how to use the Material Skin in Windows Forms Application using C# or VB.NET.

As you know, MaterialSkin is an open source library that's help you design a material form.

This library supports multiple controls such as, Checkbox, Divider, Flat Button, Label, Radio Button, Raised Button, Single-line text, TabControl, ContextMenuStrip, ListView, ProgressBar, FloatingActionButton, Dialogs, Switch...etc

To get started designing a material form, you need to install the material skin from Manage Nuget Packages or you can download it directly from https://github.com/IgnaceMaes/MaterialSkin

If you haven't got the material control in your visual studio toolbox. You need to add the material skin library to your visual studio toolbox by right clicking on generate tab or you can create a material tab, then add a reference to the MaterialSkin.dll

Open your form that you want to set the skin, then change inheritance from the Form to the MaterialForm

public partial class Form1 : MaterialForm

VB.NET

Partial Class Form1
  Inherits MaterialSkin.Controls.MaterialForm

finally initialize your colorscheme

public Form1()
{
    InitializeComponent();
    var materialSkinManager = MaterialSkinManager.Instance;
    materialSkinManager.AddFormToManage(this);
    materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;
    materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE);
}

VB.NET

Imports MaterialSkin

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim SkinManager As MaterialSkinManager = MaterialSkinManager.Instance
        SkinManager.AddFormToManage(Me)
        SkinManager.Theme = MaterialSkinManager.Themes.LIGHT
        SkinManager.ColorScheme = New ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE)
    End Sub
End Class

then layout your material design

material skin c#