Creating a Console Application

As our first exercise in using Visual Studio, we will create a simple console application. Our program Bytes will attempt to calculate how many bytes are in a kilobyte, a megabyte, a gigabyte, and a terabyte. If you want to follow along on your PC as you read, you can use the Demos directory for this chapter. The first version is in Bytes\Version1. A final version can be found in Bytes\Version3.

Creating a VB.NET Project

  1. From the Visual Studio main menu, choose File | New | Project…. This will bring up the New Project dialog.

  2. For Project Types, choose Visual Basic Projects, and for Templates, choose Empty Project. ...

Get Application Development Using Visual Basic® and .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.