Final Modern UI - Aero Snap Window, Resizing, Sliding Menu - C#, WinForms

Опубликовано: 08 Октябрь 2024
на канале: RJ Code Advance EN
145,651
1.9k

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): https://rjcodeadvance.com/final-moder...
How to download and use FontAwesome.Sharp icons:    • C#/ Modern Flat UI + Font Awesome Ico...  
How to create a multilevel dropdown menu:    • Dropdown Menu - Custom ContextMenuStr...  
How to create a Custom Controls:    • Custom Controls C#  
Download a RJ Custom Controls: https://www.nuget.org/packages/RJCode...
WM_NCCALCSIZE message: https://docs.microsoft.com/en-us/wind...
WM_NCHITTEST message: https://docs.microsoft.com/en-us/wind...
Design based on: https://assets.materialup.com/uploads...
Code based on: https://stackoverflow.com/a/30423128

😸Social networking
Facebook:   / rjcodeadvanceen  
Instagram:   / rjcodeadvanceen  

#WindowsForm #ModernUI #CSharp #VisualStudio