VB6 WINHTTP proxy freezez ui?

久未见 提交于 2020-01-05 03:06:31

问题


here is my code below , when i use it without proxy it runs smooth but when i start to use proxy the UI freezez for a bit , kindly tell me if their is something that can be done so it dont freeze and be able to do other stuff while its doing its thing.

Function httpreq(url As String) As String
    Dim whr As New WinHttp.WinHttpRequest

Set whr = CreateObject("WinHttp.WinHttpRequest.5.1")
   whr.Open "GET", url, False
whr.SetProxy 2, List1.Text, ""
    whr.Send
    httpreq = whr.ResponseText
    RichTextBox1.Text = RichTextBox1.Text & whr.ResponseText
End Function

来源:https://stackoverflow.com/questions/46226634/vb6-winhttp-proxy-freezez-ui

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!