O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Application Startup and Shutdown

All the user interface examples shown so far in Part IV involve creating a new Form class. When the example is run, the form is magically shown and demonstrates the example it was intended to show. The Form is then closed by clicking on its Close box on the right side of the title bar.

What if your application has more than one Form (which many applications do), which Form is displayed first when the application runs? The easiest way to specify which form is displayed when the application starts is to define the Startup Object in your project. The Startup Object is the object which is run when the application starts.

To specify the Startup Object, you need to open the Project Properties window. To do this, you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required