O'Reilly logo

Start Here!™ Fundamentals of Microsoft® .NET Programming by Rod Stephens

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

A method is a piece of code that you can call to make a control do something. A simple example is the TextBox control’s Clear method, which makes the control clear its contents. The exact syntax for calling these methods depends on the programming language you’re using.

Methods tend to be more closely related to particular controls than properties. For example, most controls expose Location and Size properties that determine their size and positioning; however, only those that allow users to select data (such as controls that contain text) can reasonably provide Copy, Cut, and Paste methods.

Still, it’s worth mentioning a few of the most frequently used methods so that you have an idea of the sorts of things that are possible. Table 5-5 ...

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