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.
ADAdministrator Syncfusion Team January 7, 2004 02:55 PM
Hi Peter
You will have to derive from ComboDropDown control and override the ProcessDialogKey in your derived control to catch the Up and Down keys.
Regards
Arun
PEPeterJanuary 7, 2004 04:50 PM
ProcessDialogKey is never called for directional keys
ADAdministrator Syncfusion Team January 8, 2004 11:46 AM
Hi Peter
Yes, that seems to be the case. Sorry. You need to override ProcessCmdKey instead. Here is a derived ComboDropDown that does what you are looking for:
public class MyComboDropDown : Syncfusion.Windows.Forms.Tools.ComboDropDown
{
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData==Keys.Left ||keyData==Keys.Right || keyData==Keys.Up || keyData==Keys.Down)
{
MessageBox.Show("Arrow Key: " + keyData.ToString(),"MyComboDropDown");
}
return base.ProcessCmdKey (ref msg, keyData);
}
}
Regards
Arun