Hi,
I have a TextEditor which i need to trigger an event for in the following circumstances:
1. Text has been changed from when control obtained focus
2. If text has been changed, and the Tab Key is pressed on the keyboard.
How can I capture this Tab Key Press? It does not appear to be a built in event.
Many thanks
Jason
Thanks for the info Mike,
The application I am building is an add-on for an existing software application. Our add-ons need to have the same look and feel as the existing application. The search textbox in the main application initiates the search from either clicking on the search button, or by pressing the tab key. from the info you provided however I played around with their search function, and it appears that when the textbox gains focus, the app is storing the current text, and when it loses focus (whether by tab or mouse) it then checks to see of the text has changed, and if so, runs the search.
Unfortunately the company we build the add-ons for are very closed about their code. They told us all controls are Infragistics and that no we would not be able to see the code, so all attempts at making our add-ons have the same look and feel are all done by trial and error.
Thanks again as the questions you asked led me to the answer I needed.
Have a great day.
Hi Jason,
The Tab key is handled by the form usually. But in the case of the UltraTextEditor, it has to handle it internally because when it's in edit mode, it shows a child textbox control. So I don't know if it's possible to do this.
Why would you want to specifically handle the Tab key, anyway? Wouldn't the same logic apply if the user clicks away from the control as it does when they tab out of it? Typically, you would do validation or processing of this kind in the Validating event.