| | |
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 |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagridview dataset datetime degrees development draganddrop drawing encryption enum excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml




. 
