ToolStripDropDown.BackgroundImageChanged イベント

定義

BackgroundImage プロパティの値が変化したときに発生します。

public:
 event EventHandler ^ BackgroundImageChanged;
[System.ComponentModel.Browsable(false)]
public event EventHandler BackgroundImageChanged;
[System.ComponentModel.Browsable(false)]
public event EventHandler? BackgroundImageChanged;
[<System.ComponentModel.Browsable(false)>]
member this.BackgroundImageChanged : EventHandler 
Public Custom Event BackgroundImageChanged As EventHandler 

イベントの種類

属性

次のコード例では、このメンバーの使用方法を示します。 この例では、イベント ハンドラーがイベントの BackgroundImageChanged 発生を報告します。 このレポートは、イベントが発生したタイミングを確認するのに役立ち、デバッグに役立ちます。 複数のイベントまたは頻繁に発生するイベントを報告するには、 を Console.WriteLine に置き換えるかMessageBox.Show、複数行TextBoxにメッセージを追加することを検討してください。

コード例を実行するには、 という名前ToolStripDropDown1の型ToolStripDropDownのインスタンスを含むプロジェクトに貼り付けます。 次に、イベント ハンドラーがイベントに関連付けられていることを確認します BackgroundImageChanged

private void ToolStripDropDown1_BackgroundImageChanged(Object sender, EventArgs e) {

   MessageBox.Show("You are in the ToolStripDropDown.BackgroundImageChanged event.");
}
Private Sub ToolStripDropDown1_BackgroundImageChanged(sender as Object, e as EventArgs) _ 
     Handles ToolStripDropDown1.BackgroundImageChanged

   MessageBox.Show("You are in the ToolStripDropDown.BackgroundImageChanged event.")

End Sub

注釈

イベントの処理の詳細については、「処理とイベントの発生」を参照してください。

適用対象