ToolStripDropDown.BackgroundImageChanged イベント

定義

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

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 イベントの発生を報告します。 このレポートは、イベントがいつ発生するかを学習するのに役立ち、デバッグに役立ちます。 複数のイベントや頻繁に発生するイベントについて報告するには、 MessageBox.ShowConsole.WriteLine に置き換えるか、メッセージを複数行の TextBoxに追加することを検討してください。

コード例を実行するには、ToolStripDropDownという名前の型のインスタンスを含むプロジェクトToolStripDropDown1貼り付けます。 次に、イベント ハンドラーが 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

注釈

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

適用対象