Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set a Windows Forms Title Bar and UI use the flat OS theme of Windows 8/10, not XP/7 textured look?

I am updating a Visual Basic Windows Forms application that was written for Windows XP.

What form property do I set to tell a windows form to accept the default Windows 8 / 10 flat theme? Is it a global setting per application or a per-form setting?

The main form and some child forms of my application look fine with modification.

enter image description here

However, some of my child forms still have Windows XP/7's textured look:

enter image description here

I read some posts that point to "EnableVisualStyles = true". However that question was asking how to get the Windows XP styles, rather than Win 95/95 styles. I need some clarification on what the setting should be for newer Win 8 / 10 theme.

like image 230
Dan Sorensen Avatar asked Oct 31 '22 16:10

Dan Sorensen


1 Answers

MDI Child forms are a special type of form that is not considered a TopLevel form, and windows themes only affect TopLevel forms.

Microsoft has been deprecating the use of Multiple Document Interfaces (MDI didn't even get written into WPF) in favor of Tabbed interfaces.

like image 100
LarsTech Avatar answered Nov 15 '22 05:11

LarsTech