O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

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

Methods with and Without Return Values

The Main method enjoys a special status within an application because it needs at least one user-defined (custom) type, within which it can reside, and it defines the starting point of the application solely by its name. A custom type is essentially a class—Visual Basic also has a special kind of class called a module. A module is essentially just a class that has methods available to any caller who can access the module. These methods are also called static methods.

Methods are the units into which your program is arranged. Just as the operating system calls the Main method, you can call methods in your programs. These can be custom methods that you write or methods exposed by objects that the .NET Framework ...

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