thank your response. I got some information from htmleditor......
[DispId(0)]
public void InvokeHtmlEvent()
{
if (HtmlEvent != null)
{
// Get the event.
mshtml.IHTMLEventObj pobjEvent = ((mshtml.IHTMLDocument2)
m_htmldoc).parentWindow.@event;
HtmlEventArgs ea = new HtmlEventArgs(pobjEvent);
HtmlEvent(this, ea);
}
return;
}
and don't register eventhandler directly in Microsoft.mshtml.dll
then make a manual event dispatch function to .....
maybe it works..
Regards,
Vince
"Tim Anderson" <ti*****@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
"news.microsoft.com" <vi***@citiz.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I use Microsoft.mshtml.dll(wrapper class for mshtml.dll) to create a input
type=text object in a html document.
It seems that click event is OK. but some events like blur, keyup and
down,
and focus don't be invoked correctly if registered. in addition, I can't
hilight contents in input type=text object.
Could anybody solve it or tell me your experience?>
Well-known problem. You might get some ideas here:
HtmlEditor
http://www.itwriting.com/htmleditor/index.php
Quite a lot of discussion in the forum on this site too.
Tim