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

preview_player
Показать описание
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:

😸Social networking

#WindowsForm #ModernUI #CSharp #VisualStudio
Рекомендации по теме
Комментарии
Автор

Finally; something that is simple and does exactly what I need. No more 300 different types of P/Invoke functions, just a simple WndProc override.

JrryChu
Автор

This is the simplest but fully functional code of borderless window I have ever seen! Thank you very much.

shenghdc
Автор

Awesome! I've created many UI's, but the way you did it was simply/quickly done and also really nice. Thanks.

Beleverorig
Автор

Thanks for the helpful videos, I've tried out a lot of your lessons and applied them to my forms.

orakul_azovstal
Автор

This was amazing everything you need to know to create borderless UI Application :O

LuzuVlogsGamer
Автор

Hi Guys! if your having problem with Aero Snap Window, and Resizing from the given source code. I just put this.FormBorderStyle = FormBorderStyle.Sizable; in the constructor! Hope it helps.
public Form1()
{
InitializeComponent();
CollapseMenu();
this.Padding = new Padding(borderSize); //Border size
this.BackColor = Color.FromArgb(0, 191, 99); //Border color
this.FormBorderStyle = FormBorderStyle.Sizable;
}

feeldulfo
Автор

BROOO thankyou so much, this really helped and the tutorial was really easy to use as well :)

cmchosting
Автор

Amazing WinForm 🤩

This code can help you replacing the AdjustForm method adding these lines in Initial Form

Rectangle rectangle =
rectangle.Height -= 1;
this.MaximizedBounds = rectangle;

danielmosquera
Автор

A question? The app goes to windows task bar after clicking minimized icon in right-up corner, but when you clicking app icon in windows task bar, the app form will show again, but size is very small, how to restore normal size?

jessicawong
Автор

Well, one more reason to learn spanish. (Not just for Barcelona<3) Great content and really nice and understandable.

iversithy
Автор

Thank you so much for this. You always guess right what I need to learn from you. Keep it up.

najunajames
Автор

In the new version of font awesome the name of the menu button is navicon instead of bars 😁😁😁

marwenhafnaoui
Автор

Very useful tutorials!
There are a ton of typos in the shared code though.
Just need to follow the error messages and fix the spacing and remove extra characters

BanditTech
Автор

thank you I've learned so much from you

danielaguzman
Автор

Really i love you <3 Thank you very much sir !

gizemdenizkoksal
Автор

Thank you so much dude.... Helped me a lot

mr.theviolinmaster
Автор

Eres muy bueno, pensé que estaba en wpf, me sorprende ver lo que se puede hacer con winform :0

celtecarma
Автор

Same issue as Joris Beuls, and thanks to Fredo Scott for the work around. SC_MINIMIZE doesn't seem to be captured from the click event. I you restore the windows border and fire the standard windows control, the event is triggered. put a break point on "if (wParam == SC_MINIMIZE)" and see. I just don't know why

corythompson
Автор

Awesome! Thanks by your Great Video. I prefer from this form, less explication and more time spend to the main content. And if someone needs more tutorial, either can search after! Subscribed👍

jaderson-dsnaveia
Автор

Hi! I LOVE YOUR VIDEO, thanks so much!

karlyleon