473,472 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Webbrowser Navigate to an embedded resource

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.

Aug 11 '06 #1
2 7345
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("M yApplication.Sample.html")

WebBrowser.DocumentStream = stream

Thanks and sorry about the bandwidth...

FishingScout wrote:
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.
Aug 11 '06 #2
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("M yApplication.Sample.html")

WebBrowser.DocumentStream = stream

Thanks and sorry about the bandwidth...

FishingScout wrote:
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.
Aug 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel Frede | last post by:
Hello, I Created a AxSHDocVw.AxWebBrowser in a class and want to Post Values to a WebPage. When I use this class in a Windows application, everything is fine, but in an ASPX page it hangs...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
1
by: L. Chernov | last post by:
Hello, I am trying to work with .Net 2005 WebBrowser object, and put it on a "Windows control library" (embedded in a user control class) and then I am executing it from an ASP.Net webform(with...
2
by: Ryan Ramsey | last post by:
I have been chasing this one down for a week and have narrowed it down to a machine issue. I have the following code: webBrowser.Navigate(http://finao.net/post_dkp.php?database=40); Basically...
11
by: Anil Gupte | last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot figure out where it is in .Net Thanx, -- Anil Gupte www.keeninc.net www.icinema.com
2
by: Vadim Rapp | last post by:
Hello, I want to create a webbrowser object programmatically, navigate to a URL, and then analyze the document. I create the following code (simplified): Dim ie as new webbrowser...
8
by: Ludwig Wittgenstein | last post by:
Hi, all. How can i hook up an InternetExplorer object to a WebBrowser control that I have in my windows form. Basically what I want to do is automate the WebBrowser control via the...
8
by: CJ | last post by:
After you trigger your event and store an internet webpage as an .mht file, then you store the contents of the .mht into a database. Has anyone figured out how to load the contents from the db...
6
by: LEM | last post by:
Hi, I use a Webbrowser component to display a page that has been generate dynamically from my C# program. This page contains some images that are displayed using HTML code like this: <img...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.