StatusStrip item help...

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)
 
K

kimiraikkonen

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.
 
J

Jack Jackson

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.
 
H

hzgt9b

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...
 
H

hzgt9b

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?
 
K

kimiraikkonen

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.
 
H

hzgt9b

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...
 
J

Jack Jackson

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.
 
K

kimiraikkonen

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.
 
H

hzgt9b

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.
 
H

hzgt9b

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top