Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to enable form autofill when hosting browser control?

66 views
Skip to first unread message

Apollo EMC

unread,
Jan 8, 2001, 8:24:09 PM1/8/01
to
Hi,

I dont how to enable the form autocomplete functionality. I enable
the form autocomplete in IE's "internet options", but it works in IE
but doesn't work on my application which is using IWebBrowser2
control.
Could anybody give me a hint? Thanks a lot!

Tom

Nico Westerdale

unread,
Jan 9, 2001, 12:50:52 PM1/9/01
to
Never tried it but from looking at
http://msdn.microsoft.com/workshop/c-frame.htm?/workshop/browser/mshtml/refe
rence/ifaces/interface.asp
I would guess you want to grab the external attribute of IHTMLWindow2 and
look at AutoCompleteSaveForm. See:
http://msdn.microsoft.com/workshop/c-frame.htm?/workshop/author/dhtml/refere
nce/properties/autocomplete.asp

good luck

nico


"Apollo EMC" <apol...@yahoo.com> wrote in message
news:fKt66.1714$aX5....@e420r-sjo3.usenetserver.com...

Apollo EMC

unread,
Jan 10, 2001, 7:49:20 PM1/10/01
to
Thanks for your help!
But the AutoCompleteSaveForm is used to save form data, that is, save the
form data to the cookie file.
There must be another API for enabling form autofill. Basically, it'll read
the form data from the cookie
file and check for user input.

Tom
"Nico Westerdale" <nwes...@NOxSPAMraremedium.com> wrote in message
news:#FhUsVmeAHA.1588@tkmsftngp02...

Matthew Ellis

unread,
Jan 13, 2001, 7:15:34 PM1/13/01
to
"Apollo EMC" <apol...@yahoo.com> wrote in message
news:fKt66.1714$aX5....@e420r-sjo3.usenetserver.com...
> I dont how to enable the form autocomplete functionality. I enable
> the form autocomplete in IE's "internet options", but it works in IE
> but doesn't work on my application which is using IWebBrowser2
> control.

Have you checked out the DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE flag to
IDocHostUIHandler::GetHostInfo?

Matt
m.t....@bigfoot.com

Apollo EMC

unread,
Jan 14, 2001, 9:12:09 PM1/14/01
to
Thanks a lot, matt!
I tried
STDMETHODIMP CMySite::XDocHostUIHandler::GetHostInfo(struct _DOCHOSTUIINFO *
pInfo)
{
pInfo->dwFlags = DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE ;
return S_OK;
}

It works!

Cheers,

Tom

"Matthew Ellis" <m.t....@bigfoot.com> wrote in message
news:u#UJj8bfAHA.1776@tkmsftngp05...

0 new messages