How to handle KeyDown event in ButtonEdit control ?

Must be something like this : http://help.syncfusion.com/ug_74/Toolswin/HowToHandleKeyDownEventInComboBoxBarItem.html.

But cannot find how to apply to ButtonEdit.

1 Reply

KN Karikalan Natarajan Syncfusion Team June 14, 2010 02:42 PM UTC

Hi,

Thank you for your interest int Syncfusion Products.

You can fire the KeyDown event in ButtonEdit control. Here is the sample application which illustrates you the same.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=WindowsFormsApplication1413143098.zip

The sample code as follows,

public Form1()
{
InitializeComponent();
this.buttonEdit1.TextBox.KeyDown += new KeyEventHandler(TextBox_KeyDown);
}

void TextBox_KeyDown(object sender, KeyEventArgs e)
{
MessageBox.Show("KeyDown");
this.textBox1.Text = "KeyDown";
}

Please let me know if it helps you.

Thanks,
Karikalan N

Loader.
Up arrow icon