This is the discussion forum for the HtmlEditor. See also the
HtmlEditor home page, where you can download the control, and the
Documentation Wiki, a collaborative project for documenting the control.
Setting Focus back to the editor
Posted by:
(62.48.170.---)
Date: Wednesday, 07-May-2003, 16:13:33
Hi,
After selecting a value in a comboxbox I would like to set the focus back to the editor, so that the user could keep on writing without having to select the editor (eg. by clicking on it with the mouse). But
Me.htmleditor1.Focus()
doesn´t seem to work. Maybe it only sets focus to the control and not to the editing area...
Thanks in advance
Re: Setting Focus back to the editor
Posted by:
James Hancock (---.darwinconsulting.com)
Date: Thursday, 08-May-2003, 17:44:11
This sort of works.... however if you tab into the control this doesn't set the cursor correctly so that you can't type.
What I've done is override on the OnEnter event and put the code from above in it. It makes the editor get the focus, you can get the font size, style etc., but you can't just type.
Anyone have any ideas how to get to the cursor to show?