本文整理汇总了C#中System.Windows.Forms.WebBrowserDocumentCompletedEventArgs.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# WebBrowserDocumentCompletedEventArgs.ToString方法的具体用法?C# WebBrowserDocumentCompletedEventArgs.ToString怎么用?C# WebBrowserDocumentCompletedEventArgs.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.WebBrowserDocumentCompletedEventArgs
的用法示例。
在下文中一共展示了WebBrowserDocumentCompletedEventArgs.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: webBrowser1_DocumentCompleted
void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
LogUtility.LogUtility.LogFile(" doc completed " + e.ToString() + " " + e.Url.OriginalString, ModuleLogLevel);
if (e.Url.OriginalString == textBox1.Text)
{
GoToAddress();
}
}
示例2: webBrowser1_DocumentCompleted
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
try
{
mshtml.IHTMLDocument2 myDoc = (mshtml.IHTMLDocument2)webBrowser1.Document.DomDocument;
(myDoc as HTMLDocumentClass).documentElement.setAttribute("scroll", "yes", 0);
int ctrlHeight = webBrowser1.Height;
int ctrlWidth = webBrowser1.Width;
//document完整高度
int heightsize = (int)(myDoc as HTMLDocumentClass).documentElement.getAttribute("scrollHeight", 0);
int widthsize = (int)(myDoc as HTMLDocumentClass).documentElement.getAttribute("scrollWidth", 0);
////Get Screen Height
int screenHeight = (int)(myDoc as HTMLDocumentClass).documentElement.getAttribute("clientHeight", 0);
int screenWidth = (int)(myDoc as HTMLDocumentClass).documentElement.getAttribute("clientWidth", 0);
e.ToString();
}
catch (Exception err)
{
MessageBox.Show(err.ToString());
}
}