473,654 Members | 3,289 Online
Bytes | Software Development & Data Engineering Community
+ 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.htm l", 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.Navi gate( "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 7381
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.contro l 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().As sembly.GetManif estResourceStre am("MyApplicati on.Sample.html" )

WebBrowser.Docu mentStream = 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.htm l", 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.Navi gate( "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.contro l 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().As sembly.GetManif estResourceStre am("MyApplicati on.Sample.html" )

WebBrowser.Docu mentStream = 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.htm l", 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.Navi gate( "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
3693
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 after the .submit (see code) Even if i try to start the class in a new thread it terminates at the ..submit
7
11917
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' and it steals the focus from the user's current application. How can I prevent the hidden WebBrowser from stealing focus? (And better yet can I even suppress that click?_
1
3295
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 IE6) with the following object tag: <OBJECT id="ModPkiObj" height="550" width="800" classid="http:ModPkiNew.dll#Mod.Online.Client.ModPkiNew.SignForm" name="ModPkiObj" VIEWASTEXT>
2
17955
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 all this script does is create an xml output file. After the navigate, the function stops and is triggered again when webbrowser_DocumentCompleted fires and then the XML file is read by the
11
2817
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
1938
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 ie.navigate "http://www.google.com" do while isnothing(ie.document)
8
3761
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 InternetExplorer object (instead of loading iexplorer.exe externally...). Thanks,
8
11364
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 into a webbrowser, and have it display the same way with all the embedded pictures and everything? I have been reading posts for days, but it seems there is no answer to this question. If you download a webpage into an .mht file and you...
6
6480
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 src="person.gif"> person.gif is an image that is located in my bin folder.
0
8376
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8489
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7307
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.