Click here to Skip to main content
15,915,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: Progress Bar in a status panel... Pin
leppie12-Oct-02 10:54
leppie12-Oct-02 10:54 
Richard Smith wrote:
Does anyone have any hints as how to implement a progress bar for a status panel?

I think you can host controls inside a statusbar panel. But it would probably be better to do a custom statusbar... Smile | :)

From MSDN:

Typically a StatusBar control consists of StatusBarPanel objects, each of which displays text and/or an icon. You can also provide owner-drawn panels to provide custom panels such as a progress bar or a series of images that displays the state of your application.

...

The default StatusBar has no panels. To add panels to a StatusBar you can use the Add method of the StatusBar.StatusBarPanelCollection class that is accessible through the Panels property of the control. You can also use the StatusBar.StatusBarPanelCollection object provided through the Panels property to remove panels from the control and access a specific StatusBarPanel object to manipulate the panel.

Now just add the progress bar to the panel Smile | :)

Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
GeneralRe: Try this. Pin
Masaaki Onishi12-Oct-02 11:32
Masaaki Onishi12-Oct-02 11:32 
GeneralRe: Progress Bar in a status panel... Pin
Nick Parker12-Oct-02 17:24
protectorNick Parker12-Oct-02 17:24 
GeneralRe: Progress Bar in a status panel... Cheaters! Pin
Richard Smith13-Oct-02 2:53
Richard Smith13-Oct-02 2:53 
GeneralDeclaration error. Pin
suresh_sathya11-Oct-02 0:43
suresh_sathya11-Oct-02 0:43 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 0:50
Paul Riley11-Oct-02 0:50 
GeneralRe: Declaration error. Pin
suresh_sathya11-Oct-02 1:18
suresh_sathya11-Oct-02 1:18 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 1:23
Paul Riley11-Oct-02 1:23 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 1:34
Paul Riley11-Oct-02 1:34 
GeneralRe: Declaration error. Pin
leppie11-Oct-02 9:35
leppie11-Oct-02 9:35 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 10:13
Paul Riley11-Oct-02 10:13 
GeneralRe: Declaration error. Pin
Daniel Turini11-Oct-02 1:38
Daniel Turini11-Oct-02 1:38 
GeneralRe: Declaration error. Pin
Luis Alonso Ramos11-Oct-02 9:40
Luis Alonso Ramos11-Oct-02 9:40 
GeneralRe: Declaration error. Pin
leppie11-Oct-02 10:03
leppie11-Oct-02 10:03 
GeneralFinding the * Pin
Nnamdi Onyeyiri10-Oct-02 5:52
Nnamdi Onyeyiri10-Oct-02 5:52 
GeneralRe: Finding the * Pin
Daniel Turini10-Oct-02 6:01
Daniel Turini10-Oct-02 6:01 
GeneralRe: Finding the * Pin
Nnamdi Onyeyiri10-Oct-02 6:01
Nnamdi Onyeyiri10-Oct-02 6:01 
GeneralRe: Finding the * Pin
David Stone10-Oct-02 14:03
sitebuilderDavid Stone10-Oct-02 14:03 
GeneralRe: Finding the * Pin
Eric Gunnerson (msft)11-Oct-02 10:52
Eric Gunnerson (msft)11-Oct-02 10:52 
GeneralRe: Finding the * Pin
David Stone11-Oct-02 13:48
sitebuilderDavid Stone11-Oct-02 13:48 
GeneralEmail header Pin
Tomas Petricek9-Oct-02 12:11
Tomas Petricek9-Oct-02 12:11 
GeneralRe: Email header Pin
leppie9-Oct-02 12:50
leppie9-Oct-02 12:50 
QuestionAbstract Class instance? Pin
ximian9-Oct-02 10:47
ximian9-Oct-02 10:47 
AnswerRe: Abstract Class instance? Pin
Paul Riley9-Oct-02 11:52
Paul Riley9-Oct-02 11:52 
GeneralRe: Abstract Class instance? Pin
ximian9-Oct-02 14:37
ximian9-Oct-02 14:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.