I tried exactly that because I saw some code in a different post and the TextBoxBound event never seemed to fire (see my original post).
Is it because the ComboBoxBarItem is in a Popup menu instead of some other kind of container or toolstrip menu?
>Hi Mark,
You need to get hold of the TextBox inside the ComboboxBarItem from the TextBoxBound event of the comboBoxBarItem. Then handle the KeyDown event of the textbox and do your paste there when Ctrl+V is pressed.
// TextBoxBound event of the comboBoxBarItem
void comboBoxBarItem1_TextBoxBound(object sender, Syncfusion.Windows.Forms.Tools.XPMenus.TextBoxBoundEventArgs args)
{
args.TextBox.KeyDown += new KeyEventHandler(TextBox_KeyDown);
}
void TextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.V)
{
}
}
Let me know if you have any questions.
Regards,
Rajagopal