I''m trying to trap the enter key so that I can validate what was inputed in the Textbox when the user pressed the Enter Key.
I tried using the KeyPress, KeyDown, KeyUp and none of those events where triggered.
Any help would be appreciated.
ADAdministrator Syncfusion Team August 3, 2004 10:34 PM
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))
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.
ADAdministrator Syncfusion Team August 4, 2004 10:49 AM