Hi Javier,
You would have to derive from the ButtonEdit control to create a custom ButtonEdit control and then override its ProcessCmdKey method as shown below :
public class CustomButtonEdit : ButtonEdit
{
public CustomButtonEdit () : base()
{
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == (Keys.Enter))
{
MessageBox.Show("ButtonEdit Validated!");
return true;
}
return base.ProcessCmdKey (ref msg, keyData);
}
}
Please refer to the
complete sample that illustrates this and let me know if it meets your requirements. We appreciate your interest in Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.