❔ Message box using small Segoe UI/skinny/classic theme for OK button
I am making a simple C# program with MessageBox.Show. When I run it I get a message box with the text in small Segoe UI, it's skinny, and it uses classic theme for OK button. How can I get a message box that's normal sized, long, and uses the user theme for the OK button like in the 2nd screenshot?
10 Replies
you need to add an application manifest that declares a dependency on Common Controls v6
something like:
you can add an app manifest to your program from VS and paste that in
:0 thank u
but this only fixes the classic theme part
not the small segoe ui/length
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.Not resolved :(
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.no
lol
that is the best you can do with MessageBox
as an alternative, you can use Task Dialog, which has a slightly different appearance
if you are using .NET 5 or later it comes with windows forms:
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.