Articles in this section
Category / Section

How to get the caption color and font name of WinForms Office2007Form?

1 min read

Setting caption color and font

We can get the Office2007Form''s Caption Color and Font Name using Office2007Form''s CaptionFont and FormTextColor properties.


Font formCaptionFont = ((Office2007Form)this).CaptionFont;
Color formCaptionColor = Office2007Colors.GetColorTable(((Office2007Form)this).ColorScheme).FormTextColor;


Dim formCaptionFont As Font = (CType(Me, Office2007Form)).CaptionFont
Dim formCaptionColor As Color = Office2007Colors.GetColorTable((CType(Me, Office2007Form)).ColorScheme).FormTextColor

Reference link:

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment