Tag Archives: ShowDialog

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

Provide printing and print previews with advanced features for Windows Forms applications in C#

The example Provide print previews and printing for Windows Forms applications in C# shows how to create a basic printout by handling a PrintDocument object’s PrintPage event. This example shows how to use two other PrintDocument events: BeginPrint and QueryPageSettings. … Continue reading

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

Provide print previews and printing for Windows Forms applications in C#

This example shows how you can support print previews and printing for a Windows Forms application in C#. A PrintDocument plays a central role in printing and print previews. It raises its PrintPage event to generate graphics for printing. A … Continue reading

Posted in graphics, printing | Tagged , , , , , , , , , , , , , , , | 4 Comments