In MetroForm at present, there is no option to customize ControlBox button bounds and appearance cannot be customized. If user would like to customize the ControlBox, that can be achieved by using property named CaptionImages and by handling below events.
This event is raised when the mouse pointer enters CaptionImage bounds and used to display the ToolTip for Control Box buttons.
This event raises when Mouse pointer selection is done on CaptionImage bounds and Mouse selection is released.
This event is raised when Mouse pointer enters CaptionImage bounds. It is used to show highlight effect for CaptionImage back color.
This event is raised when Mouse pointer leaves CaptionImage bounds. It is used to show highlight effect for CaptionImage back color.
Following code examples demonstrates the same.
Figure 1. Customize the ControlBox appearance in MetroForm with image.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|