473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 7337
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.