Tag: Visual Studio 2010

2 articles found.

How to add a Delay in Visual Studio 2010

Visual Basic delay, Visual Studio 2010 tutorial, timed program execution, Windows Forms scheduling

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 ...

How to use Serial Port in VB 2010

serial terminal window, COM port selector, baud rate selector, transmit and receive fields

Hello friends, I hope you are doing well. In this tutorial, we will build a simple serial terminal in Visual Basic 2010. The application will detect the COM ports available on a Windows computer, open a selected port, transmit text, receive incoming data and close the connection cleanly. This article keeps Visual Basic 2010 because that is the environment used in the original project and screenshots. According to the official Microsoft lifecycle record , Visual Studio 2010 reached the end of support in July 2020, so you should use a supported Visual Studio and .NET version for a new production application. However, the serial communication principles explained here still apply to maintenance work, laboratory computers and older engineering projects. We will begin with the electrical and pr ...