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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.