ToolStripDropDownItem.DropDownOpened イベント
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Public Event DropDownOpened As EventHandler
Dim instance As ToolStripDropDownItem Dim handler As EventHandler AddHandler instance.DropDownOpened, handler
public event EventHandler DropDownOpened
public: event EventHandler^ DropDownOpened { void add (EventHandler^ value); void remove (EventHandler^ value); }
/** @event */ public void add_DropDownOpened (EventHandler value) /** @event */ public void remove_DropDownOpened (EventHandler value)


複数の ToolStripDropDownItem コントロールの DropDownOpened イベントを処理する方法を次のコード例に示します。このコード例は、ToolStripDropDownItem クラスのトピックで取り上げているコード例の一部分です。
' This method handles the DropDownOpened event from a ' ToolStripDropDownItem. It displays the value of the ' item's Text property in the form's StatusStrip control. Sub toolStripDropDownItem_DropDownOpened(ByVal sender As Object, ByVal e As EventArgs) Dim item As ToolStripDropDownItem = CType(sender, ToolStripDropDownItem) Dim msg As String = String.Format("Item opened: {0}", item.Text) Me.toolStripStatusLabel1.Text = msg End Sub
// This method handles the DropDownOpened event from a // ToolStripDropDownItem. It displays the value of the // item's Text property in the form's StatusStrip control. void toolStripDropDownItem_DropDownOpened(object sender, EventArgs e) { ToolStripDropDownItem item = sender as ToolStripDropDownItem; string msg = String.Format("Item opened: {0}", item.Text); this.toolStripStatusLabel1.Text = msg; }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からToolStripDropDownItem.DropDownOpened イベントを検索する場合は、下記のリンクをクリックしてください。

- ToolStripDropDownItem.DropDownOpened イベントのページへのリンク