ToolStripDropDownItem.DropDownClosed イベントとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ToolStripDropDownItem.DropDownClosed イベントの意味・解説 

ToolStripDropDownItem.DropDownClosed イベント

メモ : このイベントは、.NET Framework version 2.0新しく追加されたものです。

ToolStripDropDown が閉じた場合発生します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As ToolStripDropDownItem
Dim handler As EventHandler

AddHandler instance.DropDownClosed, handler
public event EventHandler DropDownClosed
/** @event */
public void add_DropDownClosed (EventHandler
 value)

/** @event */
public void remove_DropDownClosed (EventHandler
 value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説
使用例使用例

複数の ToolStripDropDownItem コントロールDropDownClosed イベント処理する方法次のコード例示します。このコード例は、ToolStripDropDownItem クラストピック取り上げているコード例一部分です。

' This method handles the DropDownClosed event from a 
' ToolStripDropDownItem. It displays the value of the 
' item's Text property in the form's StatusStrip control.
 Sub toolStripDropDownItem_DropDownClosed(ByVal
 sender As Object, ByVal
 e As EventArgs)

     Dim item As ToolStripDropDownItem = CType(sender,
 ToolStripDropDownItem)

     Dim msg As String =
 String.Format("Item closed: {0}",
 item.Text)
     Me.toolStripStatusLabel1.Text = msg

 End Sub
// This method handles the DropDownClosed event from a 
// ToolStripDropDownItem. It displays the value of the 
// item's Text property in the form's StatusStrip control.
void toolStripDropDownItem_DropDownClosed(object sender, EventArgs
 e)
{
    ToolStripDropDownItem item = sender as ToolStripDropDownItem;

    string msg = String.Format("Item closed: {0}", item.Text);
    this.toolStripStatusLabel1.Text = msg;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ToolStripDropDownItem クラス
ToolStripDropDownItem メンバ
System.Windows.Forms 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ToolStripDropDownItem.DropDownClosed イベントのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ToolStripDropDownItem.DropDownClosed イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS