05-01-2013 10:34 AM
Hi All,
I am having some issues with Setting Focus into a Rich Text Control and then firing the OnExit event.
When Focus is set using RichTxtName.SetFocus() I can type into the control as if I had just clicked into it. However, when clicking away from the control the OnExit event does not fire.
To get the event to fire i have to first click in to the control and then click away, which is far from ideal.
Has anyone else experienced this and know of a way to get the OnExit event to fire in this situation.
Regards,
Lee
05-01-2013 11:47 AM
05-02-2013 01:16 AM
A - Yes, update 2 was required to fix some other issues I was experiencing so this has been installed.
B - When using the SetFocus to the rich text edit, if you then tab, the cursor will move to the next control in the tab order. Shift tab moves back into the rich text edit but the OnExit event still fails to fire when clicking away from the control.
05-02-2013 06:27 AM
05-03-2013 01:06 AM
No, it doesn't fire when tabbing away from the control either. The only time I have successfully managed to make it fire after using SetFocus is when I manually clicked into the control. After this, tabbing out or clicking away will fire the OnExit event.
05-07-2013 07:24 PM
Take the control out of any panels......even if it's 'floating' on top of a panel, don't put it IN the panel.....