
Hello friends! Today we will add a delay to a Visual Basic application in Visual Studio 2010. The short answer is System.Threading.Thread.Sleep(1000) for a one-second pause, but choosing where to put that statement is just as important as choosing the number. I originally needed this while spacing readings in a database project. That is a useful example because a program often needs to wait between operations while its window remains responsive. We will begin with the simple pause, then build a timer-based Windows Forms example that allows the user to cancel while waiting. The examples retain the Visual Studio 2010 and Visual Basic context. We will distinguish features available in a typical .NET Framework 4 project from later asynchronous programming features, and explain why a fixed dela ...











