0
私はソースファイルダウンローダ-latestを偽造作っていますフリーズと私はしばらくの間(10〜15秒)Vb.netは - HTMLDocumentのは、フォーム
するためのフォームがフリーズリンクを取得しようとすると、これは私のコードです:
Private Function SourceForgeGetDirectUri(Uri As String) As String
Dim doc As HtmlDocument = New HtmlWeb().Load(Uri) 'loads the website
Dim aHref As HtmlNode = doc.DocumentNode.SelectSingleNode("//a[@class='direct-download']") 'finds the a href of the direct download
Dim DirectLink = aHref.GetAttributeValue("href", "") ' gets the link
Return DirectLink
End Function
このフリーズを停止するにはどうすればよいですか?
を、それがタスクを完了した後に、それは再び通常のように動作しますか? – Werdna
はい、フォーム全体をフリーズしない方法はありますか? @ヴェルドナ –