Results 1 to 8 of 8

Thread: progress bar with text in it

  1. #1

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    progress bar with text in it

    Is there such a control? I've seen them used during installations, where the text and back ground color flip at the progress bar value....It kind looks like this. If there's not a control, how do you do it?
    thanks
    kevin
    Attached Images Attached Images  
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  2. #2
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: progress bar with text in it

    I've been working on a custom control to do the exact thing...it's still a work in progress though. If anyone has such a control already, PLEASE SHARE LOL

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: progress bar with text in it

    I think most of those control are written in C++ using pixel collision detection for knowing when to invert
    the pixels of the numbers. I would like to have one of those in VB.NET too. So hopefully someone has one to give out?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: progress bar with text in it

    I made the example using 2 textboxes one atop the other, and each having inverted colors, and the top one half the width of the bottom. It would suit my goals if I could get the text box to display half of a character on the right side (kinda cheesy, but it would do). Is there a way to do that?
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: progress bar with text in it

    I think when the textbox is sized it only displays a character at a time, right. So what if you used yur two textboxes
    in reverse order?

    Box1 will be on top but will be on the right side. then as you increase your progress you "uncover" the Box2 below
    by "sliding" Box1 to the right but it will acutlaay be resizing in width smaller and moving to the right. This will give
    the partial character display of the Box2 underneath.

    I hope I explained it right.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    Member
    Join Date
    Mar 2004
    Posts
    53

    Re: progress bar with text in it

    I don't remember where I got this from I downloaded it a while back from a tutorial or somthing so sorry I don't know who to give credit to =( Anyways, I think this may be what yo uare looking for =)
    Attached Files Attached Files

  7. #7

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: progress bar with text in it

    Having partial characters on the bottom works, but no matter how the top box is resized, you still get partial characters on the top box
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  8. #8

    Thread Starter
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: progress bar with text in it

    Quote Originally Posted by Dewwd
    I don't remember where I got this from I downloaded it a while back from a tutorial or somthing so sorry I don't know who to give credit to =( Anyways, I think this may be what yo uare looking for =)
    Thanks Dewwd,
    it's pretty close.....maybe some tweaking will get the text color to change as the bar progresses over it
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

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