Visual Basic.NET Programming. Beginner Lesson 1. Hello Visual Studio

Share

Summary

This video is the first in a series that introduces programming with Visual Basic .NET inside Visual Studio. It covers launching Visual Studio, creating a new Windows Forms application, understanding the interface, adding a button, modifying its properties, and writing a simple "Hello World" message box program. The video also explains the importance of naming conventions, handling events, and saving the project.

Highlights

Launching Visual Studio and Creating a New Project
00:00:05

The video begins by launching Visual Studio 2019 and navigating to the 'Create a new project' option. It highlights that Visual Studio is an environment, not a programming language itself, and demonstrates selecting Visual Basic for a Windows Forms App. Users are advised to name their project meaningfully and be mindful of the save location, especially in shared environments.

Exploring the Visual Studio Interface
00:03:00

The interface is introduced, including the menu, toolbar, Solution Explorer (a collection of files for the application), Properties window, and Toolbox. The importance of pinning the Toolbox for constant access is shown. The central area displays the form where the user interface will be built.

Adding a Button and Modifying Properties
00:04:26

A button is added to the form from the Toolbox. The Properties window is then used to change the button's display text to "Press Here" and its name to a more descriptive 'btnStart', following a naming convention. The concept of changing other properties like background color is also mentioned.

Writing Code for Button Click Event
00:06:14

Double-clicking the button opens the code view, revealing the form's backend code. The video explains the 'Public Class Form1' and 'End Class' structure and the 'Private Sub btnStart_Click' procedure, which will execute when the button is clicked. It emphasizes not altering the existing code structure.

Implementing a 'Hello World' Message
00:08:06

The 'MsgBox' command is used to display a series of "Hello World" messages. The video demonstrates Visual Studio's auto-completion (IntelliSense) and real-time feedback, such as auto-capitalization and color coding, to assist in writing correct code. It also illustrates how syntax errors are highlighted.

Running the Application and Saving Work
00:11:34

The application is run by clicking the start button, and the sequence of message boxes triggered by clicking the new button is demonstrated. The video concludes by showing how to stop the running application and, importantly, how to save all project files using the 'Save All' button.

Recently Summarized Articles

Loading...