Windows Forms: Metro TextBox in C#

Create Metro TextBox using Metro Framework in C#

Step 1Click New Project, then select Visual C# on the left, then Windows and then select Windows Forms Application. Name your project "MetroTextBoxDemo" and then click OK

metro textbox

Step 2: Right click on your project select Manage NuGet Packages -> Search metro framework -> Install

install metro framework

If you don't see the metro framework in your toolbox, you can view How to download and install metro framework

Step 3: Design your form as below

First, you need to change

public partial class Form1 : Form

to

public partial class Form1 : MetroFramework.Forms.MetroForm

metro textbox

Step 4: Add code to handle button click event

private void metroTextBox4_ButtonClick(object sender, EventArgs e)
{
    MetroFramework.MetroMessageBox.Show(this, "Thank you for watching this video !", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

VIDEO TUTORIALS