public Bitmap ExportImage() { if (this.Handle != IntPtr.Zero && webBrowser1.Handle != IntPtr.Zero) { return(WinUtil.CaptureWindowImage(webBrowser1.Handle)); } return(null); }