Search code examples
c#winformsprogress-bardocking

How to make progress bar location to be synchronous when maximizing the windows form?


I tried docking but it works in some pre defined positions. I want to place it in a small area at the bottom of the form and keep its relative position when maximizing the form.


Solution

  • Hold the progressor position steady with the anchor. Anchor = Bottom, Left means that my distance from the bottom and left is the same in all sizes of Windows.

    If I am now 10px from the left, I will be 10px away from the resize, and so bottom