I am developing an app in C# with Visual Studio using Windows Forms
I have a ComboxBox and I would like to enable the Ctrl+C shortcut. Right now it does not work (the selected text is simply not copied to the clipboard)
With a TextBox I simply need to set ShortcutEnabled to true, but this property does not seem to exist for ComboBox
Appearently it is what the guy in there tries to do but I don't undersand what he means.
MSDN does not elaborate much on how to do..
Shall I try to manually catch the shortcut in the private void mycomboboxname_KeyDown(object sender, KeyEventArgs e)
method ?
That seems to me like an overkill... I looked here but did not understood it well (I can't find the IsEditable property when designing the form)
Any ideas welcome...
Hans Passant answer is right. The key presses were simply intercepted (and prevented somewhere else in my code).
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments