HtmlEditor :  Phorum 5 The fastest message board... ever.

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.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
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();
}
}



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
XbpJL
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.