Results 1 to 7 of 7

Thread: [RESOLVED] GRADED Progress Bar

  1. #1

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Resolved [RESOLVED] GRADED Progress Bar

    Hi All

    If you look at programs like DAP you will see that there is a graded progressbar and I need to use something like that. The bar must have three thresholds - green, orange and red. I am sure this is available but i cant find anything of the sort. If you can help I would be grateful.

    Thanks ~~~~:<

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: GRADED Progress Bar

    Well, I don't use DAP so I don't know exactly what you mean. Are you saying that the entire bar is shown in one of those colours, depending on the value, or do you mean that the bar colour is a gradient of all three at the same time? Either way you're going to have to darw your own bar using GDI+, unless you care to search the Web for an existing third-party control.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Re: GRADED Progress Bar

    Well for threshold one the progress bar would contain green blocks. If the value goes over this then the orange blocks would start to show. Then if this is exceeded then red blocks would start showing.

    I have looked around but cant find anything similar yet. GDI+ ... well I havent worked much woth drawing methods

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: GRADED Progress Bar

    Cold you post a screenshot of this progressbar?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Re: GRADED Progress Bar

    Conceptually as below ...
    Attached Images Attached Images  

  6. #6

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Re: GRADED Progress Bar

    http://support.microsoft.com/kb/323116

    This is getting me on the right track...

  7. #7

    Thread Starter
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Re: GRADED Progress Bar

    OK I have done it thanks. Quite easy thanks to m$

    To demonstrate the use of itthe control, use the following in a form:
    Code:
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
            With GradedProgressBar1
                .Left = 20
                .Top = 20
                .Width = 100
                .Height = 20
                .Minimum = 0
                .Threshold1 = 10
                .Threshold2 = 16
                .Maximum = 20
                .Value += 1
                .Visible = True
            End With
        End Sub
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width