| | |
WebBrowser Control - Saving Source
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2008
Posts: 99
Reputation:
Solved Threads: 1
i already read through all that lol and i didn't understand
•
•
Join Date: Dec 2008
Posts: 104
Reputation:
Solved Threads: 18
Even I dont understand the whole article
But U just need to do this:
Include references to the Mshtml.dll file . To do this in your Visual C# .NET project, follow these steps:
1. Click Add Reference on the Project menu.
2. Click the COM tab.
3. Double-click Microsoft HTML Object Library.
On your View Source button or menu Click do this:
But U just need to do this:
Include references to the Mshtml.dll file . To do this in your Visual C# .NET project, follow these steps:
1. Click Add Reference on the Project menu.
2. Click the COM tab.
3. Double-click Microsoft HTML Object Library.
On your View Source button or menu Click do this:
C# Syntax (Toggle Plain Text)
mshtml.HTMLDocument objHtmlDoc = (mshtml.HTMLDocument) webBrowser1.Document.DomDocument; /*webBrowser1 is the WebBrowser Control showing your page*/ string pageSource = objHtmlDoc.documentElement.innerHTML; /* pageSource string variable will contain the source of the page displayed in your browser control. You can dispaly it in whatever way u wish to */
![]() |
Similar Threads
- Virus Alert on taskbar (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: how to refer the external file to my c# object
- Next Thread: Chech mark color
| Thread Tools | Search this Thread |
.net 2007 access algorithm appportability array barchart bitmap box broadcast buttons c# camera check checkbox client combobox control conversion cs4 csharp custom database datagrid datagridview dataset date datetime degrees development draganddrop drawing encryption enum event eventcloseformc# excel file form format forms function gdi+ handler httpwebrequest image index input install java keypress label list listbox listener listview load mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox search security server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation view visual visualstudio webbrowser windows winforms wordautomation wpf xml




. 
