METHODS

A method executes code associated with a control. The method can be a function that returns a value or a subroutine that does something without returning a value.

Because methods execute code, you cannot invoke them at design time. You can only invoke them by using code at run time.

Appendix A summarizes the Control class’s most useful methods. Controls that inherit from the Control class also inherit these methods unless they have overridden the Control class’s behavior.

Get Visual Basic 2012 Programmer's Reference 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.