PROPERTY RESET METHODS

The Form class provides several methods that reset certain property values to their defaults. The most useful of those methods are ResetBackColor, ResetCursor, ResetFont, ResetForeColor, and ResetText.

If you change one of the corresponding form properties, either at design time or at run time, these methods restore them to their default values. The default values may vary from system to system, but currently on my computer BackColor is reset to Control, Cursor is reset to Default, Font is reset to 8.25-point regular (not bold or italic) Microsoft Sans Serif, ForeColor is reset to ControlText, and Text is reset to an empty string.

Because the controls on a form adopt many of these properties (all except Text), these methods also reset the controls on the form.

NOTE
Of these methods, IntelliSense only shows ResetText even on its All tab. You have type them yourself.

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.