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

Dim instance As ToolStripDropDownItem Dim handler As ToolStripItemClickedEventHandler AddHandler instance.DropDownItemClicked, handler
public: event ToolStripItemClickedEventHandler^ DropDownItemClicked { void add (ToolStripItemClickedEventHandler^ value); void remove (ToolStripItemClickedEventHandler^ value); }


複数の ToolStripDropDownItem コントロールの DropDownItemClicked イベントを処理する方法を次のコード例に示します。このコード例は、ToolStripDropDownItem クラスのトピックで取り上げているコード例の一部分です。
' This method handles the DropDownItemClicked event from a ' ToolStripDropDownItem. It displays the value of the clicked ' item's Text property in the form's StatusStrip control. Sub toolStripDropDownItem_DropDownItemClicked( _ ByVal sender As Object, _ ByVal e As ToolStripItemClickedEventArgs) Dim msg As String = String.Format("Item clicked: {0}", e.ClickedItem.Text) Me.toolStripStatusLabel1.Text = msg End Sub
// This method handles the DropDownItemClicked event from a // ToolStripDropDownItem. It displays the value of the clicked // item's Text property in the form's StatusStrip control. void toolStripDropDownItem_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { string msg = String.Format("Item clicked: {0}", e.ClickedItem.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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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