做了個模擬不斷訪問網站的小程序,可是訪問完后不能關閉IE的進程,求幫助


直接上源碼:

for (int i = 0; i < num; i++)
            {
                InternetExplorer ie = new InternetExplorer();

                object TargetFrame = "";
                string strPost = "";
                Byte[] bytePostData = System.Text.UTF8Encoding.UTF8.GetBytes(strPost);
                object flg = null;
                object Headers = "Content-Type: application/x-www-form-urlencoded\r\n";
                object PostData = bytePostData;
         //url是textbox取得的URL值
                ie.Navigate2(ref url, ref flg, ref TargetFrame, ref PostData, ref Headers);
                ie.Visible = false;
            }

 打開程序,比如說我讓他訪問某個網站10次之后,見圖:

,請給為幫我看看怎么才能關閉IE的進程。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM