Description: void myWebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (myWebBrowser.ReadyState == WebBrowserReadyState.Complete)
{
Rectangle r = myWebBrowser.Document.Body.ScrollRectangle
myWebBrowser.Height = r.Height
myWebBrowser.Width = r.Width
bitMapPic = new Bitmap(r.Width, r.Height)
myWebBrowser.DrawToBitmap(bitMapPic, r)
picWeb.Image = bitMapPic
}
}
To Search:
File list (Check if you may need any files):
ScreenshotWebPage\ScreenshotWebPage\bin\ScreenshotWebPage.exe
.................\.................\...\ScreenshotWebPage.pdb
.................\.................\...\ScreenshotWebPage.vshost.exe
.................\.................\graphicconverter icon.ico
.................\.................\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
.................\.................\...\...\.....\GenerateResource-ResGen.read.1.tlog
.................\.................\...\...\.....\GenerateResource-ResGen.write.1.tlog
.................\.................\...\...\.....\ScreenshotWebPage.csproj.FileListAbsolute.txt
.................\.................\...\...\.....\ScreenshotWebPage.exe
.................\.................\...\...\.....\ScreenshotWebPage.pdb
.................\.................\...\...\.....\ScreenshotWebPage.Properties.Resources.resources
.................\.................\...\...\.....\ScreenshotWebPage.Screensho.resources
.................\.................\Program.cs
.................\.................\...perties\AssemblyInfo.cs
.................\.................\..........\Resources.Designer.cs
.................\.................\..........\Resources.resx
.................\.................\..........\Settings.Designer.cs
.................\.................\..........\Settings.settings
.................\.................\Screensho.cs
.................\.................\Screensho.Designer.cs
.................\.................\Screensho.resx
.................\.................\ScreenshotWebPage.csproj
.................\.................\ScreenshotWebPage.csproj.user
.................\ScreenshotWebPage.sln
.................\ScreenshotWebPage.suo
.................\.................\obj\x86\Debug\TempPE
.................\.................\...\...\Debug
.................\.................\...\x86
.................\.................\bin
.................\.................\obj
.................\.................\Properties
.................\ScreenshotWebPage
ScreenshotWebPage