如何在其父StatusStrip中为ToolStripSplitButton设置静态位置 [英] How to set static location for ToolStripSplitButton in its parent StatusStrip

查看:140
本文介绍了如何在其父StatusStrip中为ToolStripSplitButton设置静态位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢亨利...
这个问题仍然存在,我想我必须详细解释这个问题.
在Windows窗体上,我已将StatusLabel和ToolStripSplitButton项拖放到状态栏上. 正如我在上一封邮件中提到的那样,拆分按钮会根据状态标签文本的长度动态移动.我不想看到拆分按钮根据状态标签文本的长度动态移动.

-杰伊

****************************************************** ****************************************************** *********************


如何在其父级StatusStrip中为ToolStripSplitButton设置静态位置.
默认情况下,它将添加到控件的左侧.即使属性值设置为"Right",基于状态标签(用于显示状态消息)的文本大小,控件也会动态移动.



问候
Jay

Thanks Henry...
The issue still exist and I think I had to explain the issue in detail.
On Windows Form I have drag-n-dropped the status strip with StatusLabel and ToolStripSplitButton items.
The problem as I mentioned in my previous mail, the split button dynamically moves based on status label text length. I dont want to see the split button moving dynamically based on status label text length.

--Jay

*************************************************************************************************************************


How to set static location for ToolStripSplitButton in its parent StatusStrip.
By default it will be added to left side of the control. Even if the property value has set Right, based on status label (used for showing the status messages) text size the control will move dynamically.



Regards
Jay

推荐答案

myToolStrip.Items.Insert(index, myToolStripSplitbutton)


这篇关于如何在其父StatusStrip中为ToolStripSplitButton设置静态位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆