ToolStrip.RendererChanged イベント
定義
public:
event EventHandler ^ RendererChanged;
public event EventHandler RendererChanged;
member this.RendererChanged : EventHandler
Public Custom Event RendererChanged As EventHandler
例
このメンバーの使用例を次のコード例に示します。The following code example demonstrates the use of this member. この例では、イベントハンドラーが RendererChanged イベントの発生を報告します。In the example, an event handler reports on the occurrence of the RendererChanged event. このレポートは、イベントがいつ発生し、デバッグに役立つかを理解するのに役立ちます。This report helps you to learn when the event occurs and can assist you in debugging. 複数のイベントまたは頻繁に発生するイベントについてレポートするには、MessageBox.Show を Console.WriteLine に置き換えるか、メッセージを複数行 TextBox に追加することを検討してください。To report on multiple events or on events that occur frequently, consider replacing MessageBox.Show with Console.WriteLine or appending the message to a multiline TextBox.
コード例を実行するには、ToolStrip1
という ToolStrip 型のインスタンスを含むプロジェクトに貼り付けます。To run the example code, paste it into a project that contains an instance of type ToolStrip named ToolStrip1
. 次に、イベントハンドラーが RendererChanged イベントに関連付けられていることを確認します。Then ensure that the event handler is associated with the RendererChanged event.
private void ToolStrip1_RendererChanged(Object sender, EventArgs e) {
MessageBox.Show("You are in the ToolStrip.RendererChanged event.");
}
Private Sub ToolStrip1_RendererChanged(sender as Object, e as EventArgs) _
Handles ToolStrip1.RendererChanged
MessageBox.Show("You are in the ToolStrip.RendererChanged event.")
End Sub
注釈
イベントの処理の詳細については、「処理とイベントの発生」を参照してください。For more information about handling events, see Handling and Raising Events.
適用対象
こちらもご覧ください
- 方法 : Windows フォームに ToolStrip コントロールのカスタム レンダラーを作成して設定するHow To: Create and Set a Custom Renderer for the ToolStrip Control in Windows Forms
- 方法 : 実行時に ToolStrip レンダラーを設定するHow to: Set the ToolStrip Renderer at Run Time
- 方法 : アプリケーションの ToolStrip レンダラーを設定するHow to: Set the ToolStrip Renderer for an Application
- 方法 : プロフェッショナル スタイルの ToolStrip コントロールを作成するHow to: Create a Professionally Styled ToolStrip Control