I have a vb .NET windows application. In which I'm calling a external function and receive the response.
Most of the time it is working. But in some client machines the response not coming at proper time. It takes more time. My question is how can I set a timeout, e.g. 30 seconds, so that I will handle the response not coming and should continue the next steps.
Part of my code is shown below.
' my response class
Dim MyResponse as new clsResponse
' calling outside function which returns response.
MyResponse = Obj.SendRequest(MyRequest)
'' Some code Here