Reputation: 117
Is there C# code for changing the title bar of windows to "black" or for changing the design of graphical elements? For example, I want to implement the Liza Theme (http://cleodesktop.deviantart.com/art/Liza-Dark-Theme-for-Windows-8-8-1-440279895): in my C# Windows Forms project. I would prefer that the theme works system-wide and I would really appreciate it if anyone can answer.
Upvotes: 1
Views: 2425
Reputation: 2498
You can customise a windows form title bar by essentially rolling your own. Set the "FormBorderStyle" to "None" - this removes the existing title bar. Dock a thin black panel at the top of your form and add all the buttons/features you want to it - this will serve as your new title bar.
Once you have a form with your new title bar that you're happy with (let's call it CustomTitleBarForm) you can get all the forms that you want to use it to inherit from "CustomTitleBarForm" rather than the default "Form".
Upvotes: 1