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.
Editor stealing focus from other controls.
Posted by:
Chris Crowe (---.world-net.co.nz)
Date: Friday, 17-Jan-2003, 19:47:45
I am using the editor in a form and this form is poped up to edit the content.
I have noticed that the editor control always steals the focus.
Is there a way to stop the editor from stealing the focus, or putting the focus back to my control when my dialog is displayed?
You can see the focus on my control, and then the editor takes it.
Chris
Re: Editor stealing focus from other controls.
Posted by:
Chris Crowe (---.world-net.co.nz)
Date: Friday, 17-Jan-2003, 19:54:49
Found it myself...
I placed the code in the Paint Event for the form to set the focus to my first control and then it works fine.
private void EditArticleForm_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
if (isFirstPaint == true)
{
isFirstPaint = false;
textTitle.Focus();
}
}