progress bar right to left

  • Thread starter Thread starter Moshazu
  • Start date Start date
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
 
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
 
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

Progress bar and system thread 1
Quick Access Tool Bar 1
Progress Bar does not Finish 3
Excel Progress Bar Showing Progress of Month 0
disk space progress bar 1
Progress Bar 2
Progress Bar Flicker 1
Progress bar quiestion 2

Back
Top