Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinToolbars Private Sub UltraToolbarsManager1_ToolKeyPress(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolKeyPressEventArgs) Handles UltraToolbarsManager1.ToolKeyPress Debug.WriteLine("The Tool with key '" + e.Tool.Key + "' has recorded a keypress for key '" + e.KeyChar.ToString() + "'") ' 注: キーが処理されたことを示すために、e.Handled = true に設定します End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinToolbars; private void ultraToolbarsManager1_ToolKeyPress(object sender, Infragistics.Win.UltraWinToolbars.ToolKeyPressEventArgs e) { Debug.WriteLine("The Tool with key '" + e.Tool.Key + "' has recorded a keypress for key '" + e.KeyChar.ToString() + "'"); // 注: キーが処理されたことを示すために、e.Handled = true に設定します }