'宣言 Public Delegate Sub ToolbarModifiedEventHandler( _ ByVal sender As Object, _ ByVal e As ToolbarModifiedEventArgs _ )
public delegate void ToolbarModifiedEventHandler( object sender, ToolbarModifiedEventArgs e )
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinToolbars Private Sub UltraToolbarsManager1_ToolbarModified(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolbarModifiedEventArgs) Handles UltraToolbarsManager1.ToolbarModified Debug.WriteLine("The Toolbar with key '" + e.Toolbar.Key + "' has been modified. (modification type: '" + e.ToolbarChangeType.ToString() + "')") End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinToolbars; private void ultraToolbarsManager1_ToolbarModified(object sender, Infragistics.Win.UltraWinToolbars.ToolbarModifiedEventArgs e) { Debug.WriteLine("The Toolbar with key '" + e.Toolbar.Key + "' has been modified. (modification type: '" + e.ToolbarChangeType.ToString() + "')"); }