| | |
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 access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile globalization gtk httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update upload usercontrol users validate validation visualstudio webbrowser windows winforms wpf xml




. 
