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.
Hello
I am using Function Keys(F1, F2...) to open
other forms in my Application. My current form has datagrid on it. When a cell in a datagrid got focus, Function keys are not working.
I want to know How to make function keys work even when the cells are selected. Need solution in vb.net please.
Thanks
chen
CBClay Burch Syncfusion Team September 21, 2002 06:55 AM UTC
You can catch function keys in a DataGrid by deriving the datagrid and overriding ProcessDialogKey.
Public Class MyDataGrid
Inherits DataGrid
Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean
If keyData = Keys.F1 Then
Console.WriteLine("ProcessDialogKey - F1")
Return False ' don't process
End If
Return MyBase.ProcessDialogKey(keyData)
End Function
End Class