Menu

Documentation

PatienceBar isn't huge but easy, the documentation is, too.
Here you can find out everything you can/should know about it!

The following was written when the latest version was 1.4!

Compatibility with System.Windows.Forms.ProgressBar

PatienceBar is derived from ProgressBar so it's fully compatible with it!

Main use

For more comfort, you should use C#.
Insert on the top of your code file:

using PaulReichert.PatienceBar;



After that, you need a PatienceBar in your Form:

class PatienceBarTest : System.Windows.Forms.Form {
    private PatienceBar myPatienceBar = new PatienceBar();



Everything you have to do now is to add the following to the constructor of your Form:

public PatienceBarTest 
{
    Controls.Add(myPatienceBar.PreviewPanel); //Add panel with image preview to Form
    Controle.Add(myPatienceBar); //Add the PatienceBar itself

    myPatienceBar.Location = new System.Drawing.Point(10, 10); //Set location of your PatienceBar - use it like a normal ProgressBar!
    myPatienceBar.Size = new System.Drawing.Size(200,25); //Set size

    myPatienceBar.PreviewAlign = PreviewAlign.MiddleBottom; //Where - relative to your PatienceBar - should appear the preview?
}


PreviewAlign

You can align your picture preview related to the PatienceBar using the enum PreviewAlign.

PreviewAlign Member | Example

  • | -
    PreviewAlign.TopLeft |
    PreviewAlign.TopRight |
    PreviewAlign.MiddleTop |
    PreviewAlign.BottomLeft |
    PreviewAlign.BottomRight |
    PreviewAlign.MiddleBottom |
    PreviewAlign.MiddleLeft |
    PreviewAlign.MiddleRight |

Settings

The Settings property contains PatienceBar settings.

Settings Member | Use

  • | -
    Settings.JPGFiles | This specifies whether .jpg/.jpeg pictures are shown in the preview.
    Settings.GIFFiles | This specifies whether .gif pictures are shown in the preview.
    Settings.PNGFiles | This specifies whether .png pictures are shown in the preview.
    Settings.reloadFiles | This specifies whether the content of the Pictures folder is reloaded before every preview.
    Settings.UseThreads | This specifies whether threads are used to load pictures to improve performance.