MenuItemArray.Popup 事件

定義

發生在菜單項目清單顯示之前。

public:
 event EventHandler ^ Popup;
public event EventHandler Popup;
member this.Popup : EventHandler 
Public Custom Event Popup As EventHandler 
Public Event Popup As EventHandler 

事件類型

備註

此事件僅發生在選單項目有子選單項目需顯示時。 你可以使用這個事件處理器,根據應用程式的狀態新增、移除、啟用、停用、勾選或取消選單項目,在它們顯示前。

欲了解更多如何處理事件的資訊,請參閱 「處理與提升事件」。

Note

命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 的工具使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

適用於