AD
Administrator
Syncfusion Team
January 7, 2004 07:55 PM UTC
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
PE
Peter
January 7, 2004 09:50 PM UTC
ProcessDialogKey is never called for directional keys
AD
Administrator
Syncfusion Team
January 8, 2004 04:46 PM UTC
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