-3

I want to make the color of the title bar blue in my c# form application. I tried the methods on this page: Changing the color of the title bar in WinForm.

I am using windows 11 and I am preparing the project in .NET Framework 4.7 in visual studio community 2022

dogukanbicer
  • 25
  • 1
  • 5
  • 4
    Read the part of the linked question explaining why this is a really bad idea. Microsoft tends to change how window chrome is rendered from Windows version to Windows version (remember the wavy caption bar in XP or the _glass_ on on Vista). Also, users expect that they are in charge of decisions like the size, color, contrast and light-vs-darkness of their title bar. If you do this, your really need to test what it looks like in probably more than a dozen cases (light/dark, different colors, high contrast, various accessibility options, etc.) – Flydog57 Aug 19 '22 at 23:04

1 Answers1

1

You can use a NuGet Package called Guna.

Guna also has their own website.

This tutorial shows you how to make a custom Guna form: https://www.youtube.com/watch?v=N5oZnV3cA64&list=WL&index=6

Here is a screenshot I took from the tutorial:

enter image description here

You can see that there is a custom header in the form.

This method works really well.

John Doe
  • 300
  • 2
  • 11