Auto complete

Add-in Express™ Support Service
That's what is more important than anything else

Auto complete
auto fill form on IE 
pa1 modi




Posts: 84
Joined: 2011-06-18
ya i know that For the text box i have to select 'inputtext' but i need textbox and button event together.

so please can u provide sample code for this post..?


for example,

there are two messagebox 1 and messagebox 2

when i click on textbox of gmail loginPage then messagebox 1 will show but not by button of gmail.

And when i click on button of gmail loginPage then messagebox 2 will show but not click by textbox.

its really urgent..

thanks sergey
Posted 06 Sep, 2011 08:44:27 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Pavan,

The code is simple. See below.

private void adxiehtmlDocEvents1_OnClick(object sender, object eventObject, ADXCancelEventArgs e)
{
if (eventObject is mshtml.IHTMLEventObj2)
{
if (((mshtml.IHTMLEventObj2)eventObject).srcElement is mshtml.IHTMLElement)
{
mshtml.IHTMLElement elem =
((mshtml.IHTMLEventObj2)eventObject).srcElement as mshtml.IHTMLElement;
if (elem is mshtml.IHTMLInputElement)
{
if (!String.IsNullOrEmpty(elem.id))
{
if (elem.id.ToLower() == "email")
MessageBox.Show(this, "messagebox 1");
else if (elem.id.ToLower() == "signin")
MessageBox.Show(this, "messagebox 2");
else if (elem.id.ToLower() == "passwd")
MessageBox.Show(this, "messagebox 3");
}
}
}
}
}
Posted 07 Sep, 2011 16:54:22 Top
pa1 modi




Posts: 84
Joined: 2011-06-18
thnks sergey for last reply..

like "email" , "signin" , "passwd" if any combobox or dropdown is there on page then how to generate Click or Ontext_change event..??
Posted 12 Sep, 2011 05:52:27 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Pavan.

You can find all available events in the Events tab of the ADXIEHTMLDocEvents component.
Posted 12 Sep, 2011 14:23:01 Top
pa1 modi




Posts: 84
Joined: 2011-06-18
thanks sergey,

but which Event tab of the ADXIEHTMLDocEvents component use for combobox's ontext_change event?
Posted 13 Sep, 2011 00:16:05 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Pavan,

If the combobox is represented as the IHTMLInputTextElement interface in the HTML source, you can use the OnChange event of the ADXIEHTMLDocEvents component.
Posted 14 Sep, 2011 11:22:57 Top
pa1 modi




Posts: 84
Joined: 2011-06-18
hi sergey,

how to call adxiehtmlDocEvents1_OnClick(object sender, object eventObject, ADXCancelEventArgs e) from another .cs class??
Posted 15 Sep, 2011 06:18:46 Top
pa1 modi




Posts: 84
Joined: 2011-06-18
hi sergey,

i need your help to create addon toolbar for IE using c++ ?
is there any document or link which is helpful to develop toobar with c++..?


when i debug the project this warning is occurs "Debugging information for 'iexplore.exe' cannot be found or does not match.cannot find or open the PDB file"


how can i solve this??
Posted 16 Sep, 2011 02:59:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Pavan.

This is normal. Of course, you don't have the Debugging information for IE (this is the Microsoft's product). You just need to click 'Ok' and continue to work.
Please try to find some links on www.codeproject.com
Posted 16 Sep, 2011 09:06:23 Top
pa1 modi




Posts: 84
Joined: 2011-06-18
hi sergey,

ya i have do same as with c# to create IEtoolbar addon but when i debug that its throws this warning "Debugging information for 'iexplore.exe' cannot be found or does not match.cannot find or open the PDB file" with two option 'ok' and 'continue'.

so how to solve this PDB file issue..any idea?
Posted 17 Sep, 2011 00:22:27 Top