windsurfing_stew:
Hi,
Winforms has the new StatusStrip control that replaces StatusBar in
1.1. I've looked high and low but can't seem to find how to get
separators (|) in my status bar, eg
Info1 | Info2 | Info3 | Info4
where Infos 1 to 4 are StatusLabels.
Any takers?
Stew
Jason Newell:
The "Items Collection Editor" of the StatusStrip control doesn't allow
it, but you can call StatusStrip.Items.Add(new Image()). The image
would be your separator as an embedded resource.
If there's another way to do it, I don't see it.
Jason Newell
Chris :
Set the border style to Etched and have bordersides Left, Right for the
object in the status strip. This creates the exact look
本文讨论了在WinForms中使用新的StatusStrip控件替代旧版StatusBar的方法,并介绍了如何在状态栏中添加分隔符(|)来实现更美观的布局。通过设置对象的BorderStyle为Etched并配置Borders属性,可以轻松地在状态条内创建所需的分隔效果。
4658

被折叠的 条评论
为什么被折叠?



