【问题标题】:How to put image on right center corner of StatusStrip如何将图像放在 StatusStrip 的右上角
【发布时间】:2014-12-10 12:38:13
【问题描述】:

我有一个带有 2 个控件的 StatusStrip:ToolStripProgressBar 和 ToolStripStatusLabel,它们位于 StatusStrip 的左侧,现在我想将徽标图像放在 statusStrip 的右上角,我该怎么做?

我可以做的是使用 BackGroundImage 属性导入我的图像,然后我将 BackgroundImageLayout 属性设置为缩放,但这只是居中并缩放我的图像徽标。

【问题讨论】:

    标签: c# winforms


    【解决方案1】:

    在StatusStrip 上放置两个 ToolStripStatusLabels!

    • 第一个应该有Text = "";和Spring = true:

    • 第二个应该设置您的徽标Image 和Display = Image 样式。

    带有Spring = true 的控件一起使用了所有可用的规范;所以这里第一个空的ToolStripStatusLabels 会将第二个Image 推到右边..

    【讨论】:

      猜你喜欢
      • 2011-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-16
      • 1970-01-01
      相关资源
      最近更新 更多