【发布时间】:2014-09-06 01:00:06
【问题描述】:
我正在构建自己的 ToolStripMenuItem,我希望它显示在选项列表中以添加到菜单的 DropDownItems 集合中。我该怎么做?
这是我目前所拥有的。
imports System.ComponentModel
''' <summary>
''' A list of check box items that remember which item is currently checked
''' </summary>
public class ToolStripCheckItemList : inherits ToolStripMenuItem
private itemsList as List(of Object)
event checkedItemChanged(sender as Object, e as EventArgs)
<Category("Items"), _
Description("The list of items contained in the check list.")>
public property items() as List(of Object)
set
End Set
Get
return itemsList
End Get
End Property
end class
【问题讨论】:
-
到目前为止你有什么?考虑在您的问题中添加一些代码以及说明您拥有的内容与您想要实现的内容的屏幕截图。
-
考虑到我想确保我可以在 Visual Studio 的工具箱中看到这个东西,但如果你坚持使用 -1 的话。
标签: vb.net toolstripmenu toolstripitem