Tag Archives: dialog

Display reusable dialog forms in C#

The example Make a dialog with standard dialog features in C# shows the most common approach to making dialogs. Whenever it needs to display the dialog, the main program initializes a new instance of it and displays it. If the … Continue reading

Posted in dialogs, user interface | Tagged , , , , , , , , , , , | Leave a comment

Make a selection dialog that uses a color wheel in C#

The example Draw a color wheel with alpha and saturation values in C# lets the user select a color on a color wheel. This example uses that technique to build a color selection dialog. This change is fairly easy. First … Continue reading

Posted in drawing, graphics, image processing | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Display a simple password dialog before a program starts in C#

You might think that a program could start with a password form and then display its main form if the user enters a valid password. Unfortunately when the initial password form closes, it ends the whole application. A better approach … Continue reading

Posted in dialogs, forms, programs | Tagged , , , , , , , , , , | 1 Comment

Display custom colors in the color selection dialog in C#

The color selection dialog can display custom colors in the 16 boxes on its lower left (see the picture). Your code can initialize those colors by setting the dialog’s CustomColors property to an array of integers representing the colors. One … Continue reading

Posted in dialogs, graphics | Tagged , , , , , , , , , , | 1 Comment