StatusStrip item help...

  • Thread starter Thread starter hzgt9b
  • Start date Start date
H

hzgt9b

Using VS2005 (.NET 2.0), VB.NET,
I have a windows forms application. I have a StatusStrip containing a
ToolStripStatusLabal and a ToolStripProgressBar.

I want to force the status label to behave like it's docked to "Fill"
inside the StatusStrip and force the progress bar to behave like it's
docked to "Right" inside the StatusStrip. Unfortunately I do not see
any way to accomplish this using just one StatusStrip control.

Does anyone have suggestions on how to get the desired arrangement
using just one (1) StatusStrip control? (I feel like I'm missing
something easy)
 
Using VS2005 (.NET 2.0), VB.NET,
I have a windows forms application. I have a StatusStrip containing a
ToolStripStatusLabal and a ToolStripProgressBar.

I want to force the status label to behave like it's docked to "Fill"
inside the StatusStrip and force the progress bar to behave like it's
docked to "Right" inside the StatusStrip. Unfortunately I do not see
any way to accomplish this using just one StatusStrip control.

Does anyone have suggestions on how to get the desired arrangement
using just one (1) StatusStrip control? (I feel like I'm missing
something easy)

If you're meaning the alignment of objects on the form, you can
configure "anchor" in properties window beyond struggling with
"dock"ing.

Hope this helps.
 
Using VS2005 (.NET 2.0), VB.NET,
I have a windows forms application. I have a StatusStrip containing a
ToolStripStatusLabal and a ToolStripProgressBar.

I want to force the status label to behave like it's docked to "Fill"
inside the StatusStrip and force the progress bar to behave like it's
docked to "Right" inside the StatusStrip. Unfortunately I do not see
any way to accomplish this using just one StatusStrip control.

Does anyone have suggestions on how to get the desired arrangement
using just one (1) StatusStrip control? (I feel like I'm missing
something easy)

Set the Spring property for the label to True.
 
If you're meaning the alignment of objects on the form, you can
configure "anchor" in properties window beyond struggling with
"dock"ing.

Hope this helps.

Nope, didn't mean the alignment of objects on a form but rather the
alignment of toolstrip objects inside a StatusStrip control...
 
Set the Spring property for the label to True.

This did not work... the left edge of the progress bar still floats to
the left of the text in the ToolStripStatusLabel... are there any
other properties that need to be set in conjunction with Spring it to
perform as advertised?
 
This did not work... the left edge of the progress bar still floats to
the left of the text in the ToolStripStatusLabel... are there any
other properties that need to be set in conjunction with Spring it to
perform as advertised?

Try this:

Click StatusStrip and go to properties window. Click "items" and click
on the item to adjust all the location / alignment or other property
related things of items inside StatusStrip control. (eg: Progressbar,
StatusLabel)

Especially look at "layout" section of these items' properties which
are located under StatusStrip -> property window -> "items".

Hope this helps.
 
Try this:

Click StatusStrip and go to properties window. Click "items" and click
on the item to adjust all the location / alignment or other property
related things of items inside StatusStrip control. (eg: Progressbar,
StatusLabel)

Especially look at "layout" section of these items' properties which
are located under StatusStrip -> property window -> "items".

Hope this helps.- Hide quoted text -

- Show quoted text -

Thanks for your suggestions...
Yes, I know how to access the properties of the StatusStrip and have
toyed with all the Layout properties prior to posting here. What I
found is that there is no way to control the layout of multiple
toolstrip elements in the way I described in my original question -
i.e. a status label glued/docked/archored (whatever) to the left side
of the form and a progress bar glued/docked//archored (whatever) to
the right side of the form.

Am I missing something simple? If so, tell me what settings you are
using to accomplish the layout described above...
 
Thanks for your suggestions...
Yes, I know how to access the properties of the StatusStrip and have
toyed with all the Layout properties prior to posting here. What I
found is that there is no way to control the layout of multiple
toolstrip elements in the way I described in my original question -
i.e. a status label glued/docked/archored (whatever) to the left side
of the form and a progress bar glued/docked//archored (whatever) to
the right side of the form.

Am I missing something simple? If so, tell me what settings you are
using to accomplish the layout described above...

I built a StatusStrip with two items:

Label, with Spring = True
ProgressBar

The ProgressBar is aligned on the right and the label occupies the
rest of the space.

I am confused by your statement "the left edge of the progress bar
still floats to the left of the text in the ToolStripStatusLabel". If
the label appears first in the list of items, I don't see how the
progress bar can be to the left of it.
 
Thanks for your suggestions...
Yes, I know how to access the properties of the StatusStrip and have
toyed with all the Layout properties prior to posting here. What I
found is that there is no way to control the layout of multiple
toolstrip elements in the way I described in my original question -
i.e. a status label glued/docked/archored (whatever) to the left side
of the form and a progress bar glued/docked//archored (whatever) to
the right side of the form.

Am I missing something simple? If so, tell me what settings you are
using to accomplish the layout described above...

You'd better to put a screenshot there to identify your issue well.
 
I built a StatusStrip with two items:

Label, with Spring = True
ProgressBar

The ProgressBar is aligned on the right and the label occupies the
rest of the space.

I am confused by your statement "the left edge of the progress bar
still floats to the left of the text in the ToolStripStatusLabel".  If
the label appears first in the list of items, I don't see how the
progress bar can be to the left of it.- Hide quoted text -

- Show quoted text -

My fault, I meant to say the left edge of the progress bar floats to
the RIGHT of the text in the ToolStripStatusLabel.
You got this to work?! Where there any other settings made to the
containing statusStrip or the two controls it contained? I'll give
this another try.
 
I built a StatusStrip with two items:

Label, with Spring = True
ProgressBar

The ProgressBar is aligned on the right and the label occupies the
rest of the space.

I am confused by your statement "the left edge of the progress bar
still floats to the left of the text in the ToolStripStatusLabel".  If
the label appears first in the list of items, I don't see how the
progress bar can be to the left of it.- Hide quoted text -

- Show quoted text -

Thanks Jack - you got it!
The only other setting I needed was set the ToolStripProgressbar's
Alignment=Right.
Problem solved - thanks for all the responses!
 
Back
Top