Just wanted to let you know that you were of great help.
Your sample worked perfectly.
"Bill Compton" <NoWay@noSpam.org> wrote in message
news:eyS7FTZRDHA.2188@TK2MSFTNGP10.phx.gbl...
> The sample you gave worked like a charm. Your effort has been HUGELY
> helpful to me. I want you to know that I really appreciate you sharing
your
> knowledge here.
>
> Thank you.
>
> Bill
>
>
> "Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
> news:Xns93B1BF2FEFD2crtimmonscrtimmonsin@207.46.248.16...
> > "Robert Chan" <robertchan1@hotmail.com> wrote in
> > news:eIVk#PLRDHA.2432@TK2MSFTNGP10.phx.gbl:
> >
> > > I am having trouble converting this into a format that I can use
> > > in a compiled .Net Jscript
> > >
> > > The bottom line is that I am trying to incorporate a web browser
> > > control inside a form. This code was from Visual Studio and it
> > > works.
> >
> > Robert,
> >
> > Please ignore my other reply from earlier today.
> >
> > For general information on how to host the ActiveX web browser
> > control from ShDocVw.dll, please go here:
> >
> >
http://samples.gotdotnet.com/quickstart/aspplus/default.aspx?url=%2fq
> > uickstart%2fwinforms%2fdoc%2fWinFormsAxHosting.aspx
> >
> > Following the steps given on that page, here is one way to create a
> > simple browser-enabled JScript.Net app:
> >
> > 1. Use the AxImp utility to create the .Net wrappers for the
> > ShDocVw.dll:
> >
> > aximp c:\winnt\system32\shdocvw.dll
> >
> > Place the two output files (shdocvw.dll and AxShDocVw.DLL) in the
> > folder where your JScript.Net source code will go.
> >
> > 2. Place the following JScript.Net code in a file named
> > "MainForm.js" in that folder:
> >
> >
> > import System;
> > import System.Drawing;
> > import System.Windows.Forms;
> >
> > import AxSHDocVw;
> >
> > Application.Run(new BrowserExample());
> >
> > public final class BrowserExample extends Form
> > {
> > var AxWebBrowser1 : AxSHDocVw.AxWebBrowser;
> >
> > public function BrowserExample()
> > {
> > this.Width = 400;
> > this.Height = 400;
> >
> > this.AxWebBrowser1 = new AxSHDocVw.AxWebBrowser();
> > this.AxWebBrowser1.BeginInit();
> > this.AxWebBrowser1.Size = new System.Drawing.Size(292, 273);
> > this.AxWebBrowser1.TabIndex = 3;
> > this.AxWebBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
> > this.Controls.Add(AxWebBrowser1);
> > this.AxWebBrowser1.EndInit();
> >
> > this.AxWebBrowser1.Navigate("
http://www.yahoo.com/");
> > }
> > }
> >
> >
> > 3. Compile the application using this command line:
> >
> > jsc /t:exe /r:system.dll /r:system.windows.forms.dll
> > /R:System.Drawing.DLL /R:shdocvw.dll /R:AxShDocVw.DLL mainform.js
> >
> >
> > I tried these steps with both .Net 1.0 and 1.1. Everything worked OK
> > on my system.
> >
> > Hope this helps.
> >
> > Chris.
> > -------------
> > C.R. Timmons Consulting, Inc.
> >
http://www.crtimmonsinc.com/ >
>