C# Flat Login Form in WinForm App

Here is C# WinForm Practice which is refer to following Youtube Channel “C# Ui Academy

BadoYau Lee
KJ李才
2 min readOct 16, 2019

--

https://www.youtube.com/watch?v=JB37jM9jXF4

First step is WinFrom Environment Setting :

WinForm Property Setting :

  1. Start Position : CenterScreen
  2. AutoScale Mode : None
  3. Font : Century Gothic — Regular — 12
  4. FormBorderStyle : None (Make your Winfrom App more modem)
  5. Back Color : White

ToolBox Component

  1. Picture Box
  • Dock : Select Left side , Import Picture as Zoom

Dock is convenient configuration to locate your component on panel

Pic.1 Dock for Picturebox

2. Label — SignUp(Cursor-Hand)

Cursor-Hand will has a hand effect when mouse passby.

3. Text Box — Password setting (UseSystemPassword-True)

It is a practical setting on Text Box for password box using.

4. Button — FlatStyle (Flat), BorderSize(0)

5. Exit Button — this.Dispose();

What is differenct between this.close() and this.dispose ()

Close() — managed resource can be temporarily closed and can be opened once again.

Dispose() — permanently removes managed or not managed resource

Pic.2 Exist by this.Disposed()
Pic.3 WinForm for simple login UI
Pic.4 Password will be hidden since Password setting (UseSystemPassword-True)

--

--