Solved

How do i get a progress bar into a panel in a status bar?

Posted on 1998-12-20
6
230 Views
Last Modified: 2010-05-03
How do i get a progress bar into a panel in a status bar?

i would like to add the progress bar control into a panel in a status bar control.  

Thanks for the help.
0
Comment
Question by:yahdude
  • 3
  • 2
6 Comments
 

Author Comment

by:yahdude
ID: 1451609
Edited text of question
0
 
LVL 3

Expert Comment

by:Foyal
ID: 1451610
you will probably have to build yourself a fake status bar from other controls. you could use a real status bar and then switch it out with the fake one when you need to use the progress bar.
0
 
LVL 3

Accepted Solution

by:
Flubbadub earned 100 total points
ID: 1451611
I think your best solution will be to add a panel to the staus bar and then, on top of that panel, place a progress bar control of the same size.  When not in use, you can hide the progress bar control and just use the panel of the status bar as normal.  I would suggest using a text type panel on the status bar and setting it's minimum width.

Hope this helps, has worked for me...

Wayne Lee-Archer
Managing Director
Everything Multimedia Australia P/L
ema@microtech.com.au
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:yahdude
ID: 1451612
the reason that i would like it to be in the panel is that if the form is resized i would like it to still be in the same place
0
 
LVL 3

Expert Comment

by:Flubbadub
ID: 1451613
if you include the progress bar control in your resize code and resize it in the same manner as everything else, that should not be an issue.

W.
0
 

Author Comment

by:yahdude
ID: 1451614
Flubbadub...would you know how?? someone else helped me with the resize and i dont get it...i am kinda new...here is what i have
Private Sub Form_Resize()
  ' Position the controls
  Drive1.Width = vsplit.Left - ControlLeft
  ImageScroller1.Move vsplit.Left + ControlSpacing, ControlTop, Me.ScaleWidth - (vsplit.Left + ControlSpacing + ControlLeft), Me.ScaleHeight - (ControlTop * 3)
  Dir1.Move ControlLeft, dirTop, vsplit.Left - ControlLeft, Hsplit.Top - dirTop
  FileList.Move ControlLeft, Hsplit.Top + ControlSpacing, vsplit.Left - ControlLeft, Me.ScaleHeight - (Hsplit.Top + ControlSpacing + ControlTop)
  ' Change the size of the splits
  vsplit.Height = Me.ScaleHeight - (ControlTop * 4)
  Hsplit.Width = vsplit.Left - ControlLeft
End Sub
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question