How to use metroframework modern ui via NuGet

how-to-use-metroframework

Now let’s add metroframework modern ui controls on our toolbox. Right click on toolbox select Choose Items and locate the folder from where we save our project, on my end I save it in `E:\Systems Development\DMA\MetroNuGet`. Inside our project folder NuGet package manager downloaded the Metro Modern UI – Metro Framework package and put it inside the packages folder.
metro-package

Let’s open this up until we landed in `packages\MetroModernUI.1.3.0.0\lib\net` from where we can see 3 DLL`s of metroframework modern ui. Let’s select `MetroFramework.dll` and click `Open`.
metrframework

This will add all the available controls inside the `metroframework modern ui`
metro-controls

Now lets make our form `Form1` as a metro form by opening the code of it and paste the code below :

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MetroFramework.Forms;

namespace MetroSample
{
public partial class Form1 : MetroForm
{
public Form1()
{
InitializeComponent();
}
}
}

Save your changes and go back the design mode. You can now drag and drop metro controls to your form and design your project.

If you have any comments or any tutorial requests just leave your comments below.

Liked it? Take a second to support denricdenise on Patreon!

You may also like...