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

404 Views Asked by At

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.

2

There are 2 best solutions below

0
Meysam Asadi On BEST ANSWER

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

0
psy On

you can put the progress bar inside a panel then dock the panel on bottom part. Check this out;

actual size enter image description here

Maximized

enter image description here

But please take a note to place the progress bar on the upper left corner inside the panel