ABOUT, SPLASH, AND LOGIN FORMS
The TransparencyKey and Opacity properties enable you to build forms with unusual and interesting shapes. Although these would be distracting if used for the bulk of an application, they can add a little interest to About dialog boxes, splash screens, and login forms.
These three kinds of forms have quite a bit in common. Usually, they display the application’s name, version number, copyright in formation, trademarks, and so forth. They may also display a serial number, the name of the registered user, and a website or phone number where the user can get customer support.
The main difference between these forms is in how the user dismisses them. A splash screen automatically disappears after a few seconds. The user closes an About dialog box by clicking an OK button. A login form closes when the user enters a valid username and password and then clicks OK. It also closes if the user clicks Cancel, although then it doesn’t display the main application.
The forms also differ slightly in the controls they contain. A splash screen needs a Timer to determine when it is time to close the form. An About dialog box needs a single OK button. A login form needs ...
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.