I don't know about you, but I'm in love with the Windows Aero design. And I have seen a lot of tutorials and sources about creating glass forms adding special design features that are only available on Windows that supports Aero. So the thing that made me code this whole class is the fact that Google Chrome Beta added a glass button in the control box. So I present you, the AeroUtility.
Features:
AeroUtility:
Spoiler (Click to View)
But wait, there is more, this class includes a custom drawn Aero Button that is fully transparent. It is optimized for the glass background. You also have the ability to change the corner orientation of the button for future updates of the class.
AeroButton:
Spoiler (Click to View)
Notes:
Enough talking, here is the code(commented examples included):
http://pastebin.com/LFkfdmRr
Features:
- Enable/Disable Aero globally
- Get/Set the global Aero color
- Extend the frame into the client area
- Make the client area blurred/semi-transparent
- Remove the form header(icon, title, controlbox)
- Change the Aero style of the form with one property
- Add control glow
- Change default progressbar color
- Add textbox placeholder
- Add Aero style to listview
- Add Aero style to treeview
- Theme all control at the same time
- Make instance of the class for easier use
- Use all methods in a shared fashion
AeroUtility:
Spoiler (Click to View)
But wait, there is more, this class includes a custom drawn Aero Button that is fully transparent. It is optimized for the glass background. You also have the ability to change the corner orientation of the button for future updates of the class.
AeroButton:
Spoiler (Click to View)
Notes:
- Keep in mind that this class is unfinished. I didn't have enough time to continue working on it
- I plan on adding a ton more features to it, but as I said a lot of the API's are undocumented so it's a lot of trail and error.
- There are some unused API's in the API class, they will be used eventually.
- You will notice that the Aero color doesn't work very well, that's because that is not finished aswell. It changes the color, but there are some problems with the opaque options.
- You might ask yourself why you cannot see the AeroButton in the designer, it's because I planned to make every button change to Aero if the background is Aero styled, but I didn't have time so I left it there. But if you still want to have the button in the designer, you can use this little hack. It's very hacky, but it does the job.: Class AeroButton : Inherits Aero.AeroButton : End Class. The real reason why I did that is because if the app is ran on anything that doesn't support Aero, the button will look like crap.
- The control glow makes some problems if you use the class in "non-shared" fashion.
Enough talking, here is the code(commented examples included):
http://pastebin.com/LFkfdmRr


![[Image: d6b031c8b0.png]](https://puu.sh/bI5US/d6b031c8b0.png)
![[Image: 4dc40865fe.jpg]](https://puu.sh/bphqv/4dc40865fe.jpg)

![[Image: 16ec36ea31.png]](https://puu.sh/bJsAv/16ec36ea31.png)
![[Image: 6b2b351ded.png]](https://puu.sh/bJsDO/6b2b351ded.png)
![[Image: 7b7a624341.png]](https://puu.sh/bJsHG/7b7a624341.png)