'宣言 Public Class ToolEventArgs Inherits System.EventArgs
public class ToolEventArgs : System.EventArgs
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinToolbars Private Sub UltraToolbarsManager1_AfterToolActivate(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolEventArgs) Handles UltraToolbarsManager1.AfterToolActivate Debug.WriteLine("The tool with key '" + e.Tool.Key + "' has been activated") End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinToolbars; private void ultraToolbarsManager1_AfterToolActivate(object sender, Infragistics.Win.UltraWinToolbars.ToolEventArgs e) { Debug.WriteLine("The tool with key '" + e.Tool.Key + "' has been activated"); }