progress bar right to left

M

Moshazu

Is there a way to display the steps of a progress bar from right to
left? I am trying to show a visual interpretation of a number and I am
using two progress bars. When the number is positive, the right prgress
bar will grow from left to right accordingly. When the number is
negative, I want the left progress bar to grow from right to left
(showing the number is getting smaller).

Is this possible? If not, what would you suggest?

Thanks,
D
 
C

Chris

Moshazu said:
Is there a way to display the steps of a progress bar from right to
left? I am trying to show a visual interpretation of a number and I am
using two progress bars. When the number is positive, the right prgress
bar will grow from left to right accordingly. When the number is
negative, I want the left progress bar to grow from right to left
(showing the number is getting smaller).

Is this possible? If not, what would you suggest?

Thanks,
D

Instead of doing it with a progress bar I'd do a simple
Graphics.FillRectangle.

Put a picture box in place of your progressbar. You could use other
object or event just paint on the form directly. In the
PictureBox.OnPaint do a e.Graphics.FillRectangle.

You can use Brushes.Black for the brush that it ask for, if you want it
the same color every time. Then just fill in the box you want drawn
baised on your numbers.

Chris
 
R

Rocky

ProgressBar1.RightToLeft = Windows.Forms.RightToLeft.Yes
ProgressBar1.RightToLeftLayout = True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top