Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > progress bar and status bar question


Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2001, 02:12 PM
haoli12345
Guest
 
Posts: n/a
Question progress bar and status bar question


I have a progress bar on a status bar but whenever i resize my form the progress bar is not on top of the status bar please help.

-Hao Li-

Reply With Quote
  #2  
Old 07-11-2001, 02:17 PM
BillSoo's Avatar
BillSoo BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: progress bar and status bar question

You can manually move the progress bar back to the proper location in the form_resize event. Or you get rid of the statusbar and just use a picturebox (aligned to the bottom). Or you could align a picturebox to the bottom and put the statusbar and progress bar in that.

Probably the first method (resize) is better for you, but if it were me, I wouldn't bother with the status bar control. I'd just make my own out of a picturebox.



"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
  #3  
Old 07-11-2001, 02:27 PM
haoli12345
Guest
 
Posts: n/a
Default Re: progress bar and status bar question

how do you make a status bar out of a picbox???


-Hao Li-

Reply With Quote
  #4  
Old 07-11-2001, 02:38 PM
BillSoo's Avatar
BillSoo BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: progress bar and status bar question

You put a picturebox on your form. You set it's align property to "bottom". You add label or picturebox controls to it to contain the various data types. You then add code to move the controls if the picturebox resizes and finally add code to update the data as required.

For a progressbar, I normally just use a picturebox and draw a coloured rectangle in it.

My status panel is usually either a simple caption, or a dropdown listbox (so I can see the history of the messages). Imageboxes hold various icons and change images as required.

Frankly, unless you need the 1MB Microsoft Windows Common Controls for something else (maybe the tab control), I'd recommend making your own status and progress bars. Your installation program will be 1MB smaller (depending on compression ratios) and you will be able to customize it easier.



"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->