progress bar right to left

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Moshazu

    progress bar right to left

    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

  • Chris

    #2
    Re: progress bar right to left

    Moshazu wrote:[color=blue]
    > 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
    >[/color]

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

    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.OnPa int do a e.Graphics.Fill Rectangle.

    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

    Comment

    • Rocky

      #3
      Re: progress bar right to left

      ProgressBar1.Ri ghtToLeft = Windows.Forms.R ightToLeft.Yes
      ProgressBar1.Ri ghtToLeftLayout = True


      "Moshazu" <darianbonnell@ lmicorporation. com> wrote in message
      news:1138135248 .188146.171090@ g14g2000cwa.goo glegroups.com.. .[color=blue]
      > 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
      >[/color]


      Comment

      • Moshazu

        #4
        Re: progress bar right to left

        Works like a charm. Thanks all!!

        Rocky wrote:[color=blue]
        > ProgressBar1.Ri ghtToLeft = Windows.Forms.R ightToLeft.Yes
        > ProgressBar1.Ri ghtToLeftLayout = True
        >
        >
        > "Moshazu" <darianbonnell@ lmicorporation. com> wrote in message
        > news:1138135248 .188146.171090@ g14g2000cwa.goo glegroups.com.. .[color=green]
        > > 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
        > >[/color][/color]

        Comment

        Working...