Custom ProgressBar (No flicker) - WinForms C#

Поделиться
HTML-код
  • Опубликовано: 6 июн 2024
  • 🎬 [ Custom controls in Windows Forms and C# ]
    ⏮ PREVIOUS: Custom ComboBox: • Custom ComboBox - Icon...
    ⏭ NEXT: Circular Picture Box: • Circular Picture Box -...
    ▶ CURRENT VIDEO: How to create a Custom ProgressBar?
    In this tutorial, you will learn how to create a custom ProgressBar with a very elegant and attractive appearance. Where we can personalize the colors or size of all the components.
    More details:
    - Change the color and height of the channel or tracker.
    - Change the color and height of the slider or indicator.
    - Show current value (Left, Right, Center, Sliding, Dot not show).
    - Show the maximum value.
    - Add a symbol or any text before or after the value.
    - Change the color and size of the value text.
    - Change the location of the value text.
    - Change the Y-axis location of the value text.
    - And it maintains all the functions and behaviors of the conventional progress bar, except the change of direction of the slider or indicator.
    🔰 Get Code
    rjcodeadvance.com/custom-prog...
    🎦 See all custom controls:
    • Custom Controls C#
    😸Social networking
    Facebook: / rjcodeadvanceen
    Instagram: / rjcodeadvanceen
    🎁 GET RJ CODE MODERN UI - M1 (55% OFF) [ C# || VB.NET ]
    Learn how to create Custom Forms + Custom Controls + Theme and Style Settings
    - Get Project: rjcodeadvance.com/tienda/
    - Download Demo: drive.google.com/uc?id=1uo3yw...
    Credits
    Music: Cartoon - On & On (feat. Daniel Levi) [NCS Release]
    • Cartoon, Jéja - On & O...
    Code based on the ZOK example
    stackoverflow.com/a/51347694

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

  • @joaquim14acj
    @joaquim14acj 2 года назад +2

    Your tutorials are the best! Thank u!

  • @adamsulc3343
    @adamsulc3343 Год назад

    Amazing tutorials, thank you!

  • @ErrorProviderSaYarChit
    @ErrorProviderSaYarChit 2 года назад

    thanks so mach for your tutorials

  • @jasonport6691
    @jasonport6691 Год назад

    great tutorial as usual, just one question, i want to use it on a splash screen with an image background however the control does not support transparent backcolor. is this something that can be changed to suit?

  • @furkanculhaoglu2758
    @furkanculhaoglu2758 2 года назад +1

    you produce great content

  • @beamed5865
    @beamed5865 2 года назад +2

    Can you please create a custom track bar/ slider please i also love your tutorials

  • @adityanugroho2945
    @adityanugroho2945 Год назад

    Hi sir, can i ask a question?. In the showvalue.slider how to make Value Text to the same line with the progress bar and the posisition is right after the progress bar?
    sorry if my english is bad, hope you understand what i mean. Thankyou

  • @rickyvictoriano5775
    @rickyvictoriano5775 2 года назад +1

    Hi!
    Is it possible to put the progress bar vertical?

  • @mcqskills
    @mcqskills 2 года назад +1

    Hi, Bro h r u. I like u r tutorials on c# amazing very beautiful u have very good knowledge about c# programming I've one request for u Please create an android app development using XAMARIN c# hope so

  • @luissan6798
    @luissan6798 2 года назад

    very good your videos if you could make a custom tab control video

  • @okmr.2073
    @okmr.2073 Год назад

    First I really thank you for your effort.
    and I have a question.
    when form resizes(smaller or larger), this new progressBar control cannot redraw it's own area.
    I found it's reason. [stopPainting] , [paintBack] make this issue.
    How can we fix both issue? redrawing and blinking.

  • @martinqmtakacs4145
    @martinqmtakacs4145 2 года назад

    You could do circle progress bar :)

  • @crab4309
    @crab4309 2 месяца назад

    what's extenbsion for color preview?D

  • @orakulstorm3720
    @orakulstorm3720 2 года назад +3

    Или так:
    public static class ModifyProgressBarColor //ИЗМЕНИЕНИЕ ЦВЕТА ПРОГРЕСС БАРА
    {
    [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
    static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr w, IntPtr l); //ИЗМЕНИЕНИЕ ЦВЕТА ПРОГРЕСС БАРА
    public static void SetState(this ProgressBar pBar, int state)
    {
    SendMessage(pBar.Handle, 1040, (IntPtr)state, IntPtr.Zero); //ИЗМЕНИЕНИЕ ЦВЕТА ПРОГРЕСС БАРА
    }
    }
    и это в любой обработчик:
    progressBar1.SetState(2); //ИЗМЕНИЕНИЕ ЦВЕТА ПРОГРЕСС БАРА Обратите внимание на второй параметр в SetState, 1 = нормальный (зеленый); 2 = ошибка (красный); 3 = предупреждение (желтый)

  • @halily.2626
    @halily.2626 2 года назад

    thanks a lot. I wonder something, I did it step by step in my application. It works well. progressbar is tab 2 in my application. If I switch tab and come back to tab 2, complete color (back color) of progressbar is filling with blue. I couldn't solve the problem. Do you have an idea ? thanks in advance

  • @legendevent3911
    @legendevent3911 Год назад

    Everytime i try to drag and drop the progressbar it says: Error loading toolbox item "RJProgressBar".It will be removed from the toolbox. What did i do wrong? Im using visual studio 2019

    • @jasonport6691
      @jasonport6691 Год назад

      you need to rebuild the project before you can use custom controls.

  • @abdirahmanabdikadir7882
    @abdirahmanabdikadir7882 2 года назад +1

    Circle Progress and Charts Add the tutorial Sir

  • @mrmakinist
    @mrmakinist Год назад

    Pleasss radialbar chart

  • @antennistateleves3210
    @antennistateleves3210 Год назад

    not function when minimize windows! the progress bar disappears when minimize windows!!

  • @francescogranozio2780
    @francescogranozio2780 2 года назад

    How did you change windows control box color from white to yellow?

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 года назад

      In the latest windows 10 updates, it is possible to customize the colors.
      I suppose you are using the first version of W10, where the color of the title bar is white, and it is not possible to change it.

    • @francescogranozio2780
      @francescogranozio2780 2 года назад

      @@RJCodeAdvanceEN do you know if it's possibile to change it in a windows form application?

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 года назад +1

      There is no function for that, however you can create a custom title bar, as shown in this video. ruclips.net/video/5AsJJl7Bhvc/видео.html
      To remove the top thin bar, remove the border of the form : FormBorderStyle=None.

  • @mrmakinist
    @mrmakinist 2 года назад

    pleas round track bar

  • @betterhealthy1203
    @betterhealthy1203 2 года назад

    Show me customize Usercontrols

    • @RJCodeAdvanceEN
      @RJCodeAdvanceEN  2 года назад

      It was done in the previous videos.
      Custom ComboBox, Custom TextBox & Rounded TextBox.

  • @worbarry9735
    @worbarry9735 Год назад

    ffs all this just to change bar colour lol