Hi, I am using UltraTextEditor, Ctrl+C and Ctrl+V shortcuts are working for Copying and pasting. But Ctrl+A is not working, it is not selecting all text in TextEditor.
Do i have to code in KeyDown event of TextEditor in order to select all text from TextEditor, or am i missing some property of TextEditor?
Hi,
I tried this out using v10.3 (the latest) and it works fine for me.
What version are you using?
The UltraTextEditor displays an inbox TextBox control over itself when it's in edit mode, so the TextBox handles Ctrl+A automatically. So the UltraTextEditor doesn't really even do anything there.
If it's not working for you, then try placing a TextBox control into the same container as the UltraTextEditor is see if it works for the TextBox.
If not, then my best guess is that a toolbar or a context menu on the form is handling Ctrl+A before it gets to the controls.
If the TextBox works and UltraTextEditor doesn't, then try the same test with a new UltraTextEditor instead of the TextBox.
If that works, then the issue must be caused by something you are doing to the UltraTextEditor in your application. Maybe you are handling the KeyDown event or something like that.
Hi Mike,
Thanks for your time.
I am using V10.2. I tried using both UltraTextEditor and TextBox in my sample application, but for both controls i was unsuccessful. I have attached my sample application, please have a look on it.
Thanks,
Okay, it looks like the TextBox doesn't allow Ctrl+A when it's in multiline for some reason. So since the UltraTextEditor is using a TextBox control it behaves the same way. So I guess you will have to handle this in the KeyPress event.
Another option would bet use a to use a Toolbar and have a Select All button with a shortcut. But then you would have to handle this for all controls on the form, based on the ActiveControl.
Thanks Mike for your help.