Creating Your First VB .NET Application

You have an open project with one form in it. So far, you haven't done anything to it, so you now need to create the obligatory Hello World application. I remember when Microsoft was running around showing the world how you could create a Hello World application in VB by typing just one line of code. Well, it's still that easy, but things certainly look different now.

Make sure that the form designer is the current tab in the work area, and open the Toolbox. Click and drag a button onto the form. Place it wherever you want. So far, this is just like VB6. Now, double-click on the button.

Double-clicking on the button causes the code window to open, just as it did in VB. However, in VB .NET, the code is added ...

Get A Programmer's Introduction to Visual Basic® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.