Button Control is one of the most used control. Without button control, it's hard to do anything.
Button Control's default event is Click event. Button Control have Name and Text properties. One can also change the appearance of the button using Font, Back Color, and Fore Color Properties.
Flow Steps
Follow the below steps to know about the button functionality.
Drag and drop the button control onto the form.
Give the Name and Text Property as required.
Button appearance can also be changed.
See the below figure to know how it looks like.
Double click on the button, then the click event is raised.
Now, write the code as below to display a message after button click.
[csharp] private void btnClick_Click(object sender, EventArgs e)
{
MessageBox.Show("WELCOME TO SPLESSONS TUTORIALS");
}[/csharp]