Creating Your Own Dialog Boxes

Although the CommonDialog class provides you with several types of dialog boxes to use in your programs, sometimes you just can’t accomplish certain tasks with these built-in tools. For example, if you want to set your own captions for the command buttons in a dialog box, you can’t use the message box; nor can the message box handle more than three buttons (not including the Help button). Also, you may need to present a dialog box that asks the user several questions at once. If your program needs dialog box capabilities that the Dialog controls can’t offer, you can simply use a standard Windows form to create your own custom dialog box.

Visual Basic’s Dialog Box Features

Visual Basic .NET provides several features ...

Get Special Edition Using Microsoft® Visual Basic® .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.