jim
9/14/2007 11:48:00 PM
"Michael Robinson" <mkr@mkronline.com> wrote in message
news:696ab$46ea9ab6$438cc35d$11332@ALLTEL.NET...
> jim wrote:
>> OK...Don't ask why - it'll just make ya mad. It makes me mad just
>> thinking about it. I swear....if I didn't need this job, I'd tell 'em
>> where to embed their webbrowser control. But, since I do need it, here
>> are my questions...
>>
>> Can I embed an IE activex control in a webpage? I basically would like
>> to be able to embed the same component used to create IE-based browsers
>> into a webpage.
>>
>> Since IE is already on Windows PCs already, would they have to load or
>> register the component? I wouldn't think so.
>>
>> Can I put it in a DIV that will resize with the page?
>>
>> I Googled for an example of doing this (embedding an IE webbrowser
>> control in a freakin' webpage), but have come up dry so far. Anybody
>> know of any code showing such lunacy?
>>
>> Thanks for your help!
>>
>> jim
>>
>>
>
> What is the goal? Wouldn't you get the same effect by just embedding the
> activex control directly rather than embedding the IE control and loading
> the activex control in it?
The goal (as crazy as it sounds) is actually to have a web page with a
webbrowser control on it.
As far as I can tell (with the horrifically vague set of user specs I have
been given) the goal of the webpage is to teach veiwers how to use an
activex control in a webpage using the webbrowser control. From what I have
been able to glean from this jumble of specs, the end goal for this web page
is to tie together form and webform programming and move on to other activeX
controls in later lessons.
The idea of using the webbrowser control was one thought up by senior
management (who, of course, still can't program the time on their
microwaves). Evidentally the "big boss" thought it would be "cool" to host
one control inside another and the webbrowser control was the first thing
that fell from his crumbling grey mass.
I was assigned this task because they thought it would be a good learning
project for me. (Lucky me.)
Anyway....I have seen some controls hosted in web pages, and they seem to
need some type of class id. Is there a place that I can get this class id?
I assume it would be different for different versions of IE. I also assume
that version 6 of IE would be the most widely distributed version at this
time, and would probably be the one to us.
Know of any code samples that would show hosting activex controls in a div
or adding/removing activex controls dynamically? A dynamically created,
DIV-encased, hosted webbrowser control would be the holy grail of code
samples for this project.
I am Googling my butt off, but have not found a single example of a
webbrowser control being hosted in a web page.
Thanks so much for your help.
jim