Discussion:
Can't get AutoComplete to work in hosted webbrowser control
(too old to reply)
brettg
2004-05-14 23:31:02 UTC
Permalink
When I host the webbrowser ActiveX control in my own program, I cannot get AutoComplete to work no matter what. I have set the DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE flag in the IDocHostUIHandler::GetHostInfo method, but it doesn't help. Why doesn't it work

thank yo
-brett
Igor Tandetnik
2004-05-14 23:46:33 UTC
Permalink
Post by brettg
When I host the webbrowser ActiveX control in my own program, I
cannot get AutoComplete to work no matter what. I have set the
DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE flag in the
IDocHostUIHandler::GetHostInfo method, but it doesn't help. Why
doesn't it work?
Does your GetHostInfo implementation get called? Maybe you have set up
your IDocHostUIHandler incorrectly.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
brettg
2004-05-15 00:01:04 UTC
Permalink
I'm pretty sure it is set up correctly. I have been using this code for a long time and I can make all of the other DOCHOSTUIFLAG_* flags work correctly (and all other IDocHostUIHandler interface methods). But not DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE. Is there a project sample somewhere with this working? I have searched MSDN and found nothing

cheer
-brettg
brettg
2004-05-15 00:16:02 UTC
Permalink
BTW, GetHostInfo definitely gets called - I confirmed it in the debugger.
Igor Tandetnik
2004-05-15 00:24:09 UTC
Permalink
Post by brettg
I'm pretty sure it is set up correctly. I have been using this code
for a long time and I can make all of the other DOCHOSTUIFLAG_* flags
work correctly (and all other IDocHostUIHandler interface methods).
But not DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE. Is there a project
sample somewhere with this working? I have searched MSDN and found
nothing.
It should work. I have not tried it myself, but other people report
success with the technique:

http://groups.google.com/groups?threadm=fat86.36866%24bi3.133751%40e420r-sjo2.usenetserver.com
http://groups.google.com/groups?threadm=t_X09.65427%24jq5.58029%40news2.central.cox.net
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
brettg
2004-05-15 03:46:04 UTC
Permalink
Yeah, it should but it doesn't :-(
Mike J
2004-05-20 10:42:30 UTC
Permalink
Post by brettg
Yeah, it should but it doesn't :-(
It works fine for me. 200+ PCs app, never had a problem....

M

Loading...