SreekanthS

Hi,

I have encountered a formatting issue with System.Windows.Forms.RichTextBox control, when it is hosted in Microsoft Internet Explorer.

My Project is Windows Control Library developed under VS2005/C# and I have embedded the control in an ASP.NET web applcation page.

The Control works fine, when the focus is inside the control boundary.  If we change the focus from RichTextBox, it loses text format. It's strange to see such a problem.

I spent a lot of time in searching & posting the problem in various online resources.

No answer so far.

Fortunately,I could find a work around for this problem

http://support.microsoft.com/default.aspx scid=kb%3ben-us%3b249150

It explains the Workaround as:

The following are two possible workarounds to achieve rich editing functionality on your Web page:

?

 

Wrap the Rich TextBox control in another ActiveX control that does not expose the unsafe properties and methods. This wrapper control is marked as safe when it is packaged for distribution.

?

 

Use the Dynamic Hypertext Markup Language (DHTML) Editing Component, if the RTF support is not necessary.

 Here I have to go with the first option. I doní»t know how to achieve this.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 Could anyone please help me in implementing this one

 Thanks in advance