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 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.