'宣言 Public Delegate Sub ToolEventHandler( _ ByVal sender As Object, _ ByVal e As ToolEventArgs _ )
public delegate void ToolEventHandler( object sender, ToolEventArgs e )
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"); }