问题标签 [toolstripmenu]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 使用 Windows 应用程序在 C# 中启用/禁用 Mdi 父窗体上的子菜单项?
在 Mdi 父表单上,我使用菜单项调用我的子表单。在子表单上加载我的菜单项应该在子表单关闭时禁用它会再次启用..,我尝试 FormClosing 事件处理程序我得到答案..,
通过使用上面的代码,我得到了答案,但我有 20 多个 ChildForms。通过使用这种方法我的编码正在增加......,有什么方法可以代替这个......,
c# - 如何通过标签或名称引用菜单项
我正在研究访问控制列表,其中我必须根据分配的角色显示/隐藏菜单项。我已经通过 TAG 参考了每个菜单项。现在我有一个存储所有标签名称的数组。
是否有可能我只是循环通过标记名称数组并仅通过标记或名称引用菜单项控件而不循环通过所有 menuStrip 项并比较当前控件并使其可见?
谢谢
c# - How to add to ContextMenuStrip and ToolStrip same ToolStripButtons?
I have tool bar in my app and context menu with the same options, so I want to add ToolStripButtons to both ContextMenuStrip and ToolStrip, unfortunately I can't do this. Even when I add manually items to both it shows only on one.
For now I have buttons in tool bar:
I want something like this. I want this options to be one, because I will be often enable and disable this buttons and finally there is one option so why two buttons?
vb.net - VB.Net 将新表单实例作为单独的进程打开
我正在尝试使用新的进程 ID 启动我的应用程序的单独实例。有没有办法做到这一点?以下代码将显示一个单独的表单,但它共享原始表单的进程 ID:
当用户从工具条菜单中选择“新建”选项时,我基本上想复制与打开应用程序相同的行为。
c# - 想要鼠标右键单击 ToolStripMenuItem 的子菜单 - C#
我在里面有一个Toolstrip 控件,我正在添加一些ToolStripMenuItem。对于每个 ToolStripMenuItem,我想要一个子菜单(如关闭)。并在子菜单应显示的任何 ToolStripMenuItem 上单击鼠标右键。
但这不起作用。请给我一些建议。谢谢你
c# - 当 ToolStrip 中填满一行时,在新行中添加 ToolStripMenuItem
我有一个表单和内部表单我有一个工具条控件,并且我正在动态添加 ToolStripMenuItem。我想要的是当一个被填满时,项目应该在下一行列出。我尝试这样做是为了增加表单的高度和宽度,但在新行中添加项目没有发生。
如果你不明白我想要什么,请告诉我。
任何建议我怎么能做到这一点。谢谢你。
c# - 如何关闭设置为 autoclose = false 的工具条菜单项?
我有一个用户可以切换的项目菜单。我希望菜单保持打开状态,以便用户可以检查他们想要的所有项目。我设置了 autoclose = false ,现在效果很好。但是,我现在也无法关闭窗口,哈哈。我尝试在表单上单击菜单,点击转义,点击菜单项,点击菜单的组合键,没有任何效果。
理想情况下,我希望用户能够只单击表单或基本上除菜单之外的任何内容来关闭它或按 Escape。我将如何做到这一点?我尝试在表单上创建一个 gotfocus 事件并在那里执行 item.HideDropDown 但没有骰子。
谢谢!
vb.net - VB .net Context/ToolStripMenu at runtime
I have a ContextMenu like in this picture. Now i want to add where it says ".rtf" more MenuItems at runtime. I cant seem to make it...
This is how i imagine doing it, but it does not work of course because there is no ".subitems". What does it take to accomplish such an easy job?
And how can I set AddHandlers for each SubItem to a procedure?
c# - 如何找到带有名称的工具条菜单项
我已将 menuStrip1 项目的可见属性设置为 false
现在我知道toolStripMenuItem and dropDownItem
menustrip1 的名称了。如何激活所需的toolStripMenuItem and dropDownItem
.
我有
现在我想为这两个(toolStripMenuItem and dropDownItem
)项目设置可见的真。我怎样才能做到这一点?我只知道那些名字。
c# - C# 定位 MenuStrip.Items (SubMenues)
当编译两个菜单时,我已经将这个单选按钮菜单条组合在一起,其中存在两个单独的子菜单项......怎么可能让它们并排?
这是截图... http://s7.directupload.net/file/d/3404/7dwpwbm5_jpg.htm