Lecture 8
Lecture 8
Yasser N. Mohammed
Color Dialog Box
There are several classes that implement common dialog boxes, such as color
selection , print setup etc.
2
-You can invite a color dialog box by calling ShowDialog() method.
3
The Code
4
Font Dialog Box
Font dialog box represents a common dialog box that displays a list of fonts
that are currently installed on the system.
The Font dialog box lets the user choose attributes for a logical font, such as
font family and associated font style, point size, effects , and a script .
5
Ex2 : The following C# program invites a Font Dialog Box to:
1 – Print the selected Font Name and Font Size.
2 – Apply the selected font on the richTextBox1.
The Code
6
Print Dialog Box
• A user can use the Print dialog box to select a printer, configure it, and
perform a print job.
• Print dialog boxes provide an easy way to implement Print and Print Setup
dialog boxes in a manner consistent with Windows standards.
7
Ex3 : The following C# program invites a Print Dialog Box to print a document.