本文介绍了C# - 获取ToolStripMenuItem的父的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何确定ToolStripMenuItem的家长吗?与正常的MenuStrip所有你所要做的就是使用Parent属性,但它似乎并不认为T​​oolStripMenuItem有属性。我有一个有几个ToolStripMenuItems的ToolStripDropDownButton,我希望能够找出那些编程的父。

How can I determine the parent of a ToolStripMenuItem? With a normal MenuStrip all you have to do is use the Parent property, but it doesn't seem that ToolStripMenuItem has that property. I have a ToolStripDropDownButton that has a couple of ToolStripMenuItems and I'd like to be able to pinpoint the parent of those programatically.

推荐答案

尝试属性。

这篇关于C# - 获取ToolStripMenuItem的父的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 03:02