请问关于c的具体应用场景有哪些?

2026-04-24 14:522阅读0评论SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计139个文字,预计阅读时间需要1分钟。

请问关于c的具体应用场景有哪些?

private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e){ WebBrowser WebCtl=webBrowser1; HTMLDocument doc=(HTMLDocument)WebCtl.Document.DomDocument; HTMLBody body=(HTMLBody)doc.body;}

private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{


WebBrowser WebCtl = webBrowser1;
HTMLDocument doc = (HTMLDocument)WebCtl.Document.DomDocument;
HTMLBody body = (HTMLBody)doc.body;
IHTMLControlRange rang = (IHTMLControlRange)body.createControlRange();
IHTMLControlElement Img = (IHTMLControlElement)webBrowser1.Document.Images[0].DomElement; //图片地址
Image oldImage = Clipboard.GetImage();
rang.add(Img);
rang.execCommand("Copy", false, null); //拷贝到内存
Image numImage = Clipboard.GetImage();
numImage.Save(string.Format("c:\\ID2\\{0}.jpg", ID));
string strID = ID--.ToString();
webBrowser1.Navigate(@"1.6.1.8/Image/?img=1&id=" + strID);


}


请问关于c的具体应用场景有哪些?




本文共计139个文字,预计阅读时间需要1分钟。

请问关于c的具体应用场景有哪些?

private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e){ WebBrowser WebCtl=webBrowser1; HTMLDocument doc=(HTMLDocument)WebCtl.Document.DomDocument; HTMLBody body=(HTMLBody)doc.body;}

private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{


WebBrowser WebCtl = webBrowser1;
HTMLDocument doc = (HTMLDocument)WebCtl.Document.DomDocument;
HTMLBody body = (HTMLBody)doc.body;
IHTMLControlRange rang = (IHTMLControlRange)body.createControlRange();
IHTMLControlElement Img = (IHTMLControlElement)webBrowser1.Document.Images[0].DomElement; //图片地址
Image oldImage = Clipboard.GetImage();
rang.add(Img);
rang.execCommand("Copy", false, null); //拷贝到内存
Image numImage = Clipboard.GetImage();
numImage.Save(string.Format("c:\\ID2\\{0}.jpg", ID));
string strID = ID--.ToString();
webBrowser1.Navigate(@"1.6.1.8/Image/?img=1&id=" + strID);


}


请问关于c的具体应用场景有哪些?