
72
LESSON 6 Making Tool STripS and STaTuS STripS
Initially check the Text Color menu’s Black choice and the Background Color menu’s
White choice.
Give the Background Color menu items
Images that display samples of the color.
Create the
ToolStrip with buttons that duplicate the menu hierarchy. The ToolStrip
should hold two
ToolStripDropDownButtons.
Name the first tool
ToolStripDropDownButton textColorButton and make it display the
text “A.” Give it the items Black, Red, Green, and Blue. Each item should have
ForeColor
property set to its color.
Name the second tool
ToolStripDropDownButton backColorButton and make it initially
display a white color sample. Give it the items White, Pink, Green, and Blue. Make each of
these display an
Image showing a sample of the color.
Give the
StatusStrip a ToolStripStatusLabel named colorLabel with Text =
Text Colors.
Add event handlers.
Make the File menu’s Exit item close the form.
Make event handlers for each of the Text Color menu items.
Set the
RichTextBox control’s ForeColor property to the selected color.
Set the
ForeColor property of the textColorMenuItem submenu to the appropri-
ate color.
Set the
ForeColor property of the textColorButton tool strip button to the appro-
priate color.
Set the
ForeColor property of the colorLabel label to the appropriate color.
Check the selected menu item and deselect the other Text Color menu items. ...