I am making an IM client, and I've used the Forms WebBrowser control as a WYSIWYG-like editor. Unfortunately I also have to support alternative input methods, like Japanese and it's causing me grief.
To clear the editor after sending a message I call the following on myWebBrowser control:
myWebBrowser.Document.Body.InnerHtml = "";
myWebBrowser.Document.ExecCommand("FontName", false, _selectedFont);
myWebBrowser.Document.ExecCommand("FontSize", false, _selectedSize);
This works for English languages, but for Japanese this causes the input method to change from hiragana back to English characters.
Does anyone know how I can set the font without breaking the set input method?
View Complete Post