Hi,

Is there a way to display (embed) an Internet Explorer inside a windows form
?

Is there any control that can do that (be an Interner browser control) ?

Thanks
Emmanuel

Re: Display Internet explorer inside a windows form by Morten

Morten
Fri May 20 05:51:23 CDT 2005

Hi Emmanuel,

You can use the Microsoft Web Browser COM control, located in shdocvw.dll.
If you have Visual Studio.Net, right-click on the ToolBox->Add/Remove Items select the COM tab and check Microsoft Web Browser in the list. Then simply drag an drop the control like any other control.

If you don't have Visual Studio.Net reference the dll when you compile.

As for how to use it, Google is your friend

[Sample project]
http://www.codeproject.com/csharp/mshtml_automation.asp


On Fri, 20 May 2005 11:21:16 +0200, Emmanuel <Emmanuel@newsgroup.nospam> wrote:

> Hi,
>
> Is there a way to display (embed) an Internet Explorer inside a windows form
> ?
>
> Is there any control that can do that (be an Interner browser control) ?
>
> Thanks
> Emmanuel
>
>
>



--
Happy coding!
Morten Wennevik [C# MVP]

Re: Display Internet explorer inside a windows form by Herfried

Herfried
Fri May 20 06:46:16 CDT 2005

"Emmanuel" <Emmanuel@newsgroup.nospam> schrieb:
> Is there a way to display (embed) an Internet Explorer inside a windows
> form ?
>
> Is there any control that can do that (be an Interner browser control) ?

WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;311303>

WebOCHostCSharp.exe Hosts the WebBrowser Control in C# .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;326217>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Re: Display Internet explorer inside a windows form by Emmanuel

Emmanuel
Fri May 20 07:50:43 CDT 2005

Hi Herfried ,

Thank you for the info but the C# version, won't compile.

I get many error messages including:
C:\Dev.NET\WEB embed\WebOCHostCtrl.cs(169): The type 'SHDocVw.OLECMDEXECOPT'
is defined in an assembly that is not referenced. You must add a reference
to assembly 'Interop.SHDocVw'.

Where is Interop.SHDocVw ?

Thanks
Emmanuel

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:ed$PQFTXFHA.3572@TK2MSFTNGP12.phx.gbl...
> "Emmanuel" <Emmanuel@newsgroup.nospam> schrieb:
>> Is there a way to display (embed) an Internet Explorer inside a windows
>> form ?
>>
>> Is there any control that can do that (be an Interner browser control) ?
>
> WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
> <URL:http://support.microsoft.com/?scid=kb;EN-US;311303>
>
> WebOCHostCSharp.exe Hosts the WebBrowser Control in C# .NET
> <URL:http://support.microsoft.com/?scid=kb;EN-US;326217>
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>



Re: Display Internet explorer inside a windows form by Emmanuel

Emmanuel
Fri May 20 08:30:03 CDT 2005

Hi Morten,

Thank you. It works just as expected.

Emmanuel
"Morten Wennevik" <MortenWennevik@hotmail.com> wrote in message
news:op.sq2lrxemklbvpo@stone...
> Hi Emmanuel,
>
> You can use the Microsoft Web Browser COM control, located in shdocvw.dll.
> If you have Visual Studio.Net, right-click on the ToolBox->Add/Remove
> Items select the COM tab and check Microsoft Web Browser in the list.
> Then simply drag an drop the control like any other control.
>
> If you don't have Visual Studio.Net reference the dll when you compile.
>
> As for how to use it, Google is your friend
>
> [Sample project]
> http://www.codeproject.com/csharp/mshtml_automation.asp
>
>
> On Fri, 20 May 2005 11:21:16 +0200, Emmanuel <Emmanuel@newsgroup.nospam>
> wrote:
>
>> Hi,
>>
>> Is there a way to display (embed) an Internet Explorer inside a windows
>> form
>> ?
>>
>> Is there any control that can do that (be an Interner browser control) ?
>>
>> Thanks
>> Emmanuel
>>
>>
>>
>
>
>
> --
> Happy coding!
> Morten Wennevik [C# MVP]