PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Re: Opening the application's "homepage" in axwebbrowser when it is lo

Reply

Re: Opening the application's "homepage" in axwebbrowser when it is lo

 
Thread Tools Rate Thread
Old 09-01-2007, 10:22 AM   #1
waheed iqbal
Guest
 
Posts: n/a
Default Re: Opening the application's "homepage" in axwebbrowser when it is lo


Use

Use other overloaded method of web browser contorl that take only file name
etc

Me.AxWebBrowser1.Navigate("FileName")

where File Name can be a url or File Name. In your case you must place
index.html in Bin directory and call above line in form loading event
handler. regards

Waheed Iqbal



"orit" <orit@discussions.microsoft.com> wrote in message
news:05B16213-DE4D-43E8-9F20-62DC583F2AB4@microsoft.com...

>I have winform that contains axWebBrowser. I want that when the application
> runs a default .html page of the application will be opened in the
> webbrowser
> control.
> My question is how do I include in my application a constant file, and how
> do I refer to it in the code. for example in the following code - with
> what
> reference should I replace the "index.html" that will always be available
> with my application?
> I tried to add to the _load event of the form the following code:
>
Code:
> object missingVal = Missing.Value; > awbMain.Navigate("index.html" , ref missingVal , ref missingVal , ref > missingVal , ref missingVal); >

>
> Thanks a lot



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off