Designing A Stylish Gradient Sidebar | C# Windows Form

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2023
  • НаукаНаука

Комментарии • 8

  • @Hocotun
    @Hocotun 29 дней назад

    4:43 My corners are not rounded in this moment. I found on the Internet that you need to add this code to the form constructor:
    Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
    And I also have a thin white stripe coming out from bottom because of the shadow, how can I remove it?

  • @gororo1219
    @gororo1219 6 месяцев назад

    Thank you so much I really love your tutorials.
    I always use it to my projects❤

  • @janeltonvunge9986
    @janeltonvunge9986 6 месяцев назад

    So nice tutorial 🎉

  • @FrancoisTchofa
    @FrancoisTchofa 6 месяцев назад

    Whaou 🥰 thanks for this tutorial !

    • @coding_ideas
      @coding_ideas  6 месяцев назад

      You're welcome! Please subscribe to see more tutorials like this. :)

  • @aljonmor
    @aljonmor 6 месяцев назад

    How to prevent the panel from losing the gradient when maximizing or modifying the size of the window?

    • @coding_ideas
      @coding_ideas  6 месяцев назад +1

      Apologies, I didn't notice that the gradient would be lost when you resize the form. To fix it, try adding this code: public Gradient_SidebarPanel() {
      this.Resize += Gradient_SidebarPanel_Resize;
      }
      private void Gradient_SidebarPanel_Resize(object sender, EventArgs e)
      {
      this.Invalidate();
      }

    • @aljonmor
      @aljonmor 6 месяцев назад

      @@coding_ideas It works, thanks to the help!