Change the Look and Feel of Login Form in Windows Application

Introduction

This article shows how to hide control boxes like minimize, maximize, the close button and change the look and feel of your Windows application form.

Use the following procedure to change the look and feel.

Step 1: Create a Windows application named "Windows App".

windows application

Step 2: Add a label and change the text like the name of your application in your default form named "Form1".

Add a label and change the text

Add some more functionality like:

  • Add some controls like button, label, textbox and groupbox
  • Change the background color of form using the Background Color property

background color 

Step 3: Run the application.
 
Run the application

Purpose: Hide the control box, like minimize, maximize, close button and change the look and feel of the form.

Solution
  1. Change the "FormBorderStyle" property of the form to "None" instead of the default value "sizable".

    FormBorderStyle property

  2. Run the application and see the form.

    Run the application and see the form

  3. But the drawback is, how to close the application whern the user wants to. So you need to add a close button for closing the form.

    close button

  4. Call the close() method on a click event of the close button to close the form.

    private void button2_Click(object sender, EventArgs e)
    {
         Close();
    }

    Call the close method
     
  5. Run the application and check it.

    check it