【问题标题】:Clear the items after ContextMenuStrip is shown显示 ContextMenuStrip 后清除项目
【发布时间】:2010-07-20 07:57:56
【问题描述】:

我想在 ContextMenuStrip 显示后清除项目。但是,当我进行以下调用时,ContextMenuStrip 一开始就没有正确显示。有什么想法吗?

ContextMenuStrip.Show()
ContextMenuStrip.Items.Clear();

谢谢,

【问题讨论】:

    标签: contextmenustrip


    【解决方案1】:

    请忽略本帖。

    我应该处理 ContextMenuStrip.Closing 事件并将 ContextMenuStrip.Items.Clear() 放入其中来完成这项工作。

    谢谢,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-30
      • 2011-03-02
      相关资源
      最近更新 更多