Best way to get to URL (I don't need an answer) in Visual Basic.Net

I basically send the URL to control the tilt and pan of the IP camera, so all I need to do is send a request, I'm not worried about receiving anything. I am currently using:

Dim Request As HttpWebRequest = WebRequest.Create("http://xxx.xxx.xxx.xxx/nphControlCamera?Direction=TiltDown&Resolution=320x240&Quality=Standard&RPeriod=0&Size=STD&PresetOperation=Move&Language=3")
Dim Response As HttpWebResponse = Request.GetResponse

My problem is here, if I hit it two or three times, it blocks my program. So what am I doing wrong or what is the best way to submit this URL?

thanks

+3
source share
2 answers

Perhaps you can name it asynchronously and prevent the user from sending the request again until the camera is in itself?

Basically you should use BeginGetResponse instead of GetResponse.

: - VB.NET?

+4

- ? , .

+2

All Articles