Create a modern, flat, borderless form with all the standard behaviors of a window.
- Aero Snap Window
- Resizing
- Custom title bar.
- Drag the form
- Control Box buttons
- Sliding menu (Expand or Collapse menu)
- Multi-level drop down menu
🔔Content:
0:00 Intro
1:27 Design Form
5:01 Start Coding
5:43 Dragging the form
6:42 Remove title bar and keep Snap Window
11:43 Control Box Buttons
13:07 Sliding Menu
17:05 Resize the form
19:41 DropDowm Menu
Note: Fix size error on first minimized.
Subscribe to the Load event and initialize the formSize field with the client size of the form.
private void Form1_Load(object sender, EventArgs e)
{
formSize = this.ClientSize;
}
🌍Links:
- Get source code (Improved): [ Ссылка ]
- How to download and use FontAwesome.Sharp icons: [ Ссылка ]
- How to create a multilevel dropdown menu: [ Ссылка ]
- How to create a Custom Controls: [ Ссылка ]
- Download a RJ Custom Controls: [ Ссылка ]
- WM_NCCALCSIZE message: [ Ссылка ]
- WM_NCHITTEST message: [ Ссылка ]
- Design based on: [ Ссылка ]
- Code based on: [ Ссылка ]
😸Social networking
Facebook: [ Ссылка ]
Instagram: [ Ссылка ]
#WindowsForm #ModernUI #CSharp #VisualStudio
Ещё видео!