Results 1 to 4 of 4

Thread: progress bar vb2003

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    181

    progress bar vb2003

    Hey. I tired out vb2005 for a while, and I noticed that the progressbar in it has a setting to let it just increase itself. It only uses like 5 bars but keeps going by itself without a timer. Is there a way I can do this type in 2003? I really want it to have only 5 bars and go itself.

    Thanks
    John

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

    Re: progress bar vb2003

    You mean setting the Style property to Marquee I take it. This is a new addition for .NET 2.0 for which there is no equivalent in .NET 1.x. It was high on many people's wish list, which is why they have now added it. If you want to do the same you will either need to hack something together or find a third-party solution. None of the third-party solutions I've seen look like the standard ProgressBar though, so it means a non-standard UI.
    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
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142

    Re: progress bar vb2003

    you don't need vs2005 to set the marquee style on a progressbar, it's very easy in vs2002 / 2003
    you can set the progressbar style to PBS_MARQUEE using setwindowlong api
    then you can use sendmessage ... PBM_SETMARQUEE specifying true or false for the wparam value & the time in milliseconds for the lparam ( the speed of the scroll )

    here's the link to one of the many topics i have posted on regarding this ... ~~Scrolling Progressbar~~

    mind you, i can also make a progressbar smooth in vs2003 easily
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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

    Re: progress bar vb2003

    Quote Originally Posted by dynamic_sysop
    you don't need vs2005 to set the marquee style on a progressbar, it's very easy in vs2002 / 2003
    you can set the progressbar style to PBS_MARQUEE using setwindowlong api
    then you can use sendmessage ... PBM_SETMARQUEE specifying true or false for the wparam value & the time in milliseconds for the lparam ( the speed of the scroll )

    here's the link to one of the many topics i have posted on regarding this ... ~~Scrolling Progressbar~~

    mind you, i can also make a progressbar smooth in vs2003 easily
    Sweet! Could have told me that months ago mind you.
    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

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