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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 83

  • @J3rryChu
    @J3rryChu ปีที่แล้ว

    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.

  • @shenghdc
    @shenghdc 3 ปีที่แล้ว +1

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

  • @Beleverorig
    @Beleverorig 2 ปีที่แล้ว +2

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

  • @BanditTech
    @BanditTech ปีที่แล้ว

    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

  • @orakul_azovstal
    @orakul_azovstal 3 ปีที่แล้ว +2

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

  • @danielmosquera7702
    @danielmosquera7702 3 ปีที่แล้ว +2

    Amazing WinForm 🤩
    ----- This code can help you replacing the AdjustForm method adding these lines in Initial Form ------
    Rectangle rectangle = Screen.PrimaryScreen.WorkingArea;
    rectangle.Height -= 1;
    this.MaximizedBounds = rectangle;

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  3 ปีที่แล้ว +3

      Thanks for the suggestion, I think it would work, but it won't work on multiple monitors with multiple resolutions.

  • @marwenhafnaoui
    @marwenhafnaoui 2 ปีที่แล้ว +3

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

  • @LuzuVlogsGamer
    @LuzuVlogsGamer ปีที่แล้ว

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

  • @feeldulfo9387
    @feeldulfo9387 8 หลายเดือนก่อน +1

    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;
    }

  • @corythompson8483
    @corythompson8483 2 ปีที่แล้ว

    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

  • @jessicawong1536
    @jessicawong1536 2 ปีที่แล้ว +3

    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?

  • @keiryliza
    @keiryliza 3 ปีที่แล้ว +3

    Thanks so much for your time, your videos are very good. Can you do a video developing an AutoUpdater app for our Desktop applications?
    We need some explication about.

  • @hubertkenobi7
    @hubertkenobi7 ปีที่แล้ว

    Awesome tuts! Can you make one tutorial explaining how to make a drag and drop sortable list?

  • @iversithy1927
    @iversithy1927 3 ปีที่แล้ว

    Well, one more reason to learn spanish. (Not just for Barcelona

  • @francoismat440
    @francoismat440 2 ปีที่แล้ว +1

    It's really great videos. I do have a question, before you remove the title bar, you managed to have the title bar on the same color of your panel. How did you managed to do that ? Mine stay White no matter what I try to do.

  • @c2mchosting
    @c2mchosting 2 ปีที่แล้ว

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

  • @kilaruraviteja9616
    @kilaruraviteja9616 2 ปีที่แล้ว +1

    Thanks a lot for tutorials.Please help me to customize close ,maximize and restore buttons.

  • @celtecarma
    @celtecarma 2 ปีที่แล้ว

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

  • @danielaguzman2476
    @danielaguzman2476 ปีที่แล้ว

    thank you I've learned so much from you

  • @coolwaterdvr
    @coolwaterdvr ปีที่แล้ว

    Awsome. Can you do a tutorial how to make a TabControl look modern?

  • @jangansotoy
    @jangansotoy ปีที่แล้ว +2

    Add this when facing issue on Maximize and Minimize Form
    private void MainForm_SizeChanged(object sender, EventArgs e)
    {
    if (this.WindowState == FormWindowState.Normal)
    {
    formSize = this.ClientSize;
    }
    }

  • @najunajames5012
    @najunajames5012 3 ปีที่แล้ว

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

  • @jaderson-dsnaveia
    @jaderson-dsnaveia 3 ปีที่แล้ว

    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👍

  • @mr.theviolinmaster6596
    @mr.theviolinmaster6596 2 ปีที่แล้ว

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

  • @ncrx7
    @ncrx7 2 ปีที่แล้ว

    When ı clicked any button, how do we make it switch to another view(like another canvas , for example when ı clicked home buton, the middle part will change, as if you have moved to a different page)

  • @gizemdenizkoksal8815
    @gizemdenizkoksal8815 3 ปีที่แล้ว +1

    Really i love you

  • @jamirush108
    @jamirush108 2 ปีที่แล้ว

    Awesome ! I have a problem, when I click on another application the border reappears.
    Did I miss something ? Thank you !!

  • @karlyleon5700
    @karlyleon5700 2 ปีที่แล้ว

    Hi! I LOVE YOUR VIDEO, thanks so much!

  • @pako_tube6898
    @pako_tube6898 ปีที่แล้ว

    Please how dragging the the form from the custom title bar?

  • @serhatkaradag8786
    @serhatkaradag8786 3 ปีที่แล้ว

    Why sidemenü will be opened or closed to faster ? Why there is no anyeffect ? Like in iOs?

  • @Vaedan
    @Vaedan 3 ปีที่แล้ว

    Hello, indeed as the rest said this is a nice video and i learned alot. I just noticed in your code to prevent the window from moving after a minimize or maximize action is a bug. When i minimize and reopen it my window is very small. Maximize function works fine. Any idea what is missing?

    • @fredoscott2346
      @fredoscott2346 2 ปีที่แล้ว +5

      Try changing
      const int SC_RESTORE = 0xF120;
      with
      const int SC_RESTORE = 0x09;
      Worked for me. Merry christmas :)

  • @oguzturkyilmaz543
    @oguzturkyilmaz543 5 หลายเดือนก่อน

    Excellent . Thanks.

  • @geisonab
    @geisonab 2 ปีที่แล้ว +1

    I fixed the size problem of the maximized form with this code in the constructor.
    Rectangle rect = Screen.FromHandle(this.Handle).WorkingArea;
    rect.Width= rect.Width- borderSize;
    rect.Height= rect.Height- borderSize;
    this.MaximizedBounds = rect;

  • @LeXYYiNSOMNIA
    @LeXYYiNSOMNIA 3 ปีที่แล้ว

    As soon as I open a new form, the checkboxes for the previous form just get back to default, how can I hide the form and not closing the previous form?

  • @shikosherif8829
    @shikosherif8829 3 ปีที่แล้ว +1

    Can you add link for this icons !

  • @minhtranuc6168
    @minhtranuc6168 3 ปีที่แล้ว +1

    So great sir!!

  • @muradlizad7936
    @muradlizad7936 9 หลายเดือนก่อน

    Wonderfull, thank you boss

  • @aljohnjacinto5543
    @aljohnjacinto5543 2 ปีที่แล้ว

    Good day! I've noticed that the loading of my form is extremely slow when I add an iconButton (about 8 seconds). Any idea what I did wrong?

  • @Sup3rS56
    @Sup3rS56 ปีที่แล้ว

    Hello, the resizing area is very small and it's kinda frustating, is there a way to increase this size without increasing the borderSize?

  • @selingungor8923
    @selingungor8923 2 ปีที่แล้ว +1

    For Dll import class ; using System.Runtime.InteropServices;

  • @muhammadwajid3867
    @muhammadwajid3867 2 ปีที่แล้ว

    in my case button text not whowing when i load the form.plz help me about that

  • @singlesolo978
    @singlesolo978 3 ปีที่แล้ว

    new sub for you 😃.Thank you for your tutorial.

  • @array6873
    @array6873 2 ปีที่แล้ว

    Can you provide the link to the VS source? Thank you

  • @rizwanzahir3501
    @rizwanzahir3501 3 ปีที่แล้ว

    Can you create a winform with smoothly rounded corners.

  • @MrMaiminhtien
    @MrMaiminhtien 3 ปีที่แล้ว +1

    Thanks for your video

  • @josefveselsky9426
    @josefveselsky9426 4 หลายเดือนก่อน

    nice example thx

  • @Hal34329
    @Hal34329 ปีที่แล้ว

    The resize doesn't work for me, no error, it just doesn't resize, I can use the Aero, but can't resize :(

  • @saurabhtyagi7031
    @saurabhtyagi7031 3 ปีที่แล้ว +1

    Very impressive...♥️♥️

  • @niodev
    @niodev 3 หลายเดือนก่อน

    Thanks😘

  • @abdullahiahmed3895
    @abdullahiahmed3895 2 ปีที่แล้ว

    Is tNice tutorials the free version?

  • @gustavoleon7222
    @gustavoleon7222 3 ปีที่แล้ว +1

    Good evening, my friend, a pleasure to greet you, your channel is spectacular, your contributions are great, but I would like an afvoe, that you help me with a video customize a TabControl, greetings and thank you very much for your contribution, forgive my bad English

  • @WorldCount
    @WorldCount 3 ปีที่แล้ว

    Good example!
    Upd.
    resize event: left to right - flicker, buttons and right border :(
    I don't cant fix it :((

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  3 ปีที่แล้ว +1

      Try set the double buffer to true, or I recommend creating a new project.

  • @mancharie1893
    @mancharie1893 ปีที่แล้ว

    u r the best

  • @mohammedshareef3714
    @mohammedshareef3714 ปีที่แล้ว

    I couldn't find ''bars" iconchar property. Then I used 'equals'

    • @rubenMiguel55
      @rubenMiguel55 ปีที่แล้ว

      like @marwenhafnaoui said: "In the new version of font awesome the name of the menu button is navicon instead of bars"

  • @nan-syphotographsmemories2051
    @nan-syphotographsmemories2051 ปีที่แล้ว

    I do hope you also make a video in vb

  • @shahidullahjan3783
    @shahidullahjan3783 2 ปีที่แล้ว

    Hello Sir, I have an issue when I add IconButton form fontAwesomesharp to my form and run it, the form scaling is changed and it appears much smaller than its original size, could you help me with this problem? thanks in adavance

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 ปีที่แล้ว

      Hi,
      Could you send me screenshots to my email?

    • @MGMGn
      @MGMGn 2 ปีที่แล้ว

      Same here, any solution ?

  • @kechkech7353
    @kechkech7353 3 ปีที่แล้ว

    thank u teacher!

  • @sylascoker1483
    @sylascoker1483 3 ปีที่แล้ว

    The "snapping feature doesn't work for me unfortunately :(. Although Great video!

    • @cool-jd8hg
      @cool-jd8hg 3 ปีที่แล้ว +2

      Set the border to sizable and it will work

  • @qnet4923
    @qnet4923 3 ปีที่แล้ว

    tnxs for video very helpful

  • @edmilson1178
    @edmilson1178 3 ปีที่แล้ว +1

    Can you put the project in the Github?

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  3 ปีที่แล้ว +2

      Ok, I'll upload it later.

    • @elsam_
      @elsam_ 2 ปีที่แล้ว

      @@RJCodeAdvanceEN so what is your github?

  • @edmilson1178
    @edmilson1178 3 ปีที่แล้ว +1

    Excelente 👏😀👏😀

  • @junfengwei8877
    @junfengwei8877 3 ปีที่แล้ว

    How to get the source code

  • @ghimbir3385
    @ghimbir3385 3 ปีที่แล้ว

    How to delete the title box but let exit minimaze and maximaze buttons?

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  3 ปีที่แล้ว +1

      Hi, thanks for watching my videos, I think doing that is impossible. But it would be great to do it, I'll investigate.

  • @LiLKartus
    @LiLKartus 2 ปีที่แล้ว

    Please control your music, I can't pay attention to the video, put something like Lofi or chill beats.

  • @richerbod
    @richerbod 3 ปีที่แล้ว

    Look so i bought this and
    it isn't the best because the
    labels look absolutely trash!
    you cant even read the icons or text of labels or pictures~!

  • @learn9491
    @learn9491 2 ปีที่แล้ว

    5:05 Code

  • @nokodev
    @nokodev 2 ปีที่แล้ว +1

    For the WndProc you can save 4 lines of code by using this
    protected override void WndProc(ref Message m)
    {
    if (m.Msg != 0x0083 && m.WParam.ToInt32() != 1)
    base.WndProc(ref m);
    }
    You can short this to a single line.

  • @andozamhariroroyan4711
    @andozamhariroroyan4711 2 ปีที่แล้ว

    the fontosum.sharp lib is gone? i already search in nuget and didnt find it

  • @babyj5085
    @babyj5085 2 ปีที่แล้ว

    Minimize Error Fix
    private void BtnMinimize_Click(object sender, EventArgs e)
    {
    this.WindowState = FormWindowState.Minimized;
    this.Size = formSize;
    }

  • @TheMaxmecan
    @TheMaxmecan 2 ปีที่แล้ว

    //Keep form size when it is minimized and restored. Since the form is resized because it takes into account the size of the title bar and borders.
    if (m.Msg == WM_SYSCOMMAND)
    {
    ///
    /// Quote:
    /// In WM_SYSCOMMAND messages, the four low - order bits of the wParam parameter
    /// are used internally by the system.To obtain the correct result when testing
    /// the value of wParam, an application must combine the value 0xFFF0 with the
    /// wParam value by using the bitwise AND operator.
    int wParam = (m.WParam.ToInt32() & 0xFFF0);
    if (wParam == SC_MINIMIZE) //Before
    formSize = this.ClientSize;
    if (wParam == SC_RESTORE)// Restored form(Before)
    this.Size = formSize;
    }
    formSize is with some error = CS0103