Results 1 to 2 of 2

Thread: wait for reply?

  1. #1
    bhatia.ankur8 is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.0
    Join Date
    Apr 2012
    Posts
    1
    Reputation
    0

    wait for reply?

    Hello everyone!

    I am making an application in VB.NET. Got stuck so need your help. The application makes a search in the database and sends a message to another system using socket programming.Now what I want to do is to wait for 5 seconds to get a reply from that system, and if I don't get a reply within 5 seconds, I want my application to perform the same search again in the database until it receives a reply from that system. Can anyone explain how it can be done??

    Thanks in advance.

  2. #2
    Lotok is offline VB.NET Forum Genius
    .NET Framework
    .NET 4.0
    Join Date
    Jan 2012
    Location
    Scotland
    Posts
    193
    Reputation
    22
    Thread.sleep(5000)


    Sent from my XT910 using Tapatalk 2

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking