Skip to main content
GameDev.net gamedev.net
🔒 Locked

Force Aero Basic For Individual C# Forms

Started by dave Apr 4, 2010 at 7:38 AM 3 replies 2.4k views
Original Post
dave
dave
The reason i want to do this is because i have a series of tools windows in my main application and i think that the FixedToolWindow form border style is too bulky, and it has a drop shadow which i don't want. So is there any way i can force an individual form to draw like aero basic? I could always draw the form myself and mimick the look and feel i suppose, but i'd rather not have to resort to that. Any ideas?
benryves
benryves
MDI children are drawn in an Aero Basic style, but I'm not sure you'd want to change your application to use MDI.
[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]
Spodi
Spodi
Sounds like a user-choice problem. If people choose to use an overly-flashy bulky Windows skin, then its their loss.

I know you can disable visual themes for a program (or, more accurately, have a program disable visual themes for the OS), but haven't heard of being able to change the theme for a particular window. Not sure if Windows even can support multiple themes at once.

Can't you use a borderless form, then manually draw the border? Would be a bit hacky and quite a lot of work for little gain, but if you really must...
NetGore - Open source multiplayer RPG engine
Mike.Popoloski
Mike.Popoloski
You use the SetWindowTheme function to change the visual styles of a given window. To remove all styles, you can call it with empty strings for both arguments.
Mike Popoloski | Journal | SlimDX
dave
dave
I'll give that a go. Thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.