The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I've configured my record actions (New, Update, Save etc) to a menu and set short cut keys for them. Now I've been using Ctrl+N for new, Ctrl+U for Update... now for Cancel, it would be Ctrl-C but then that is the short cut key for Cut.
I want to set it to Escape key for Cancel, but it is not in the short cut list within the Menu Editor.
Is it possible to manually configure it I can detect when the Escape key is pressed without defining it in every text/object box??
Doh, I presume that the solution you've given is for C?
I should have stated that I'm working with Visual Basic.
Does it work with VB?
RPRamesh Praveen Syncfusion Team July 10, 2003 08:58 AM UTC
' VB.Net
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
If keyData = Keys.Escape Then
'Do something.
Return True
End If
Return MyBase.ProcessCmdKey( msg, keyData)
End Function