Webbrowser Navigate to an embedded resource

  • Thread starter Thread starter FishingScout
  • Start date Start date
F

FishingScout

I have a small html file that I have added to my project. When I added
"sample.html", I set the build action to "embedded resource".

In the application I would like to do something like this ( but this
doesn't work ):

WebBrowser.Navigate( "MyApplication.Sample.html" )

Does anyone know if

1. it is possible to Navigate to an embedded html page
2. how to Navigate to an embedded hteml page

Thank you.
 
Hello,

I just was reading more and found someone had posted a message about
ediqute and mentioned that someone should be posting in the
winforms.control group. Being new to this site and its capabilitites I
thought I should look around and actually check out that group for this
question as well.

Anyway, I found a solution and here it is:

Dim stream As IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("MyApplication.Sample.html")

WebBrowser.DocumentStream = stream

Thanks and sorry about the bandwidth...
 
Hello,

I just was reading more and found someone had posted a message about
ediqute and mentioned that someone should be posting in the
winforms.control group. Being new to this site and its capabilitites I
thought I should look around and actually check out that group for this
question as well.

Anyway, I found a solution and here it is:

Dim stream As IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("MyApplication.Sample.html")

WebBrowser.DocumentStream = stream

Thanks and sorry about the bandwidth...
 
Back
Top