473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Some Event problems about HTMLInputElementClass

Hi,

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?

Thanks in advance
Vince

Jul 21 '05 #1
2 3836
"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
Jul 21 '05 #2
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

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: fdsl ysnh | last post by:
--- python-list-request@python.orgдµÀ: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, > visit >...
4
by: Bob | last post by:
Below is sample code that illustrates what I'm trying to do. For sake of brevity I didn't include the properties of buildBtn that determine what data to request. The problem is I never see...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
0
by: valmir cinquini | last post by:
i'm developing a faq session of our website and I'm facing some problems handling xml files and DataSet relations First off all, here's the structure of my xml file: <?xml version="1.0"?>...
2
by: Senne Vaeyens | last post by:
Hi, I'm writing an app that will show a scrolling transparent graph and I'm ancountering some problems, explained in the following code: (a VS project explaining the problem(s) can be downloaded...
1
by: Rene | last post by:
Hi, I am running is some problems with the KeyPreview and KeyPress events. The KeyPress event is only triggered when there this an focusable control on the form. When all controls are disabled...
12
by: Jack Russell | last post by:
My unstanding of all VB up to and including vb6 is that an event could not "interrupt" itself. For instance if you had a timer event containing a msgbox then you would only get one message. ...
2
by: news.microsoft.com | last post by:
Hi, 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,...
24
by: =?Utf-8?B?U3dhcHB5?= | last post by:
Can anyone suggest me to pass more parameters other than two parameter for events like the following? Event: Onbutton_click(object sender, EventArgs e)" Event handler: button.Click += new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.