问题
I was working on how to add glass effect to a win forms in vb.net or c#
I looked a lot of examples like using e.graphics to make a square with the win form dimension and others are done really good without any e.graphics trick.
But my problem is that I didn't look any example that uses windows controls like buttons, labels, dropdowns, etc on a glass effect win form.
Searching on the web I found this article for C++:
http://www.codeproject.com/Articles/18910/Adding-or-Retrofitting-Aero-Glass-into-Legacy-Wind
If you look at the images from the article, I am having that problem and I wish to do something like that for .NET
回答1:
The answers in here provide a great value for your question: Windows aero glass form text problem
Because of the inherent limitation of WinForms, you can either use owner-drawn controls, or put a solid-color panel on back of the controls, or use a modern transparency-compatible solution, like WPF.
回答2:
Use this to convert the example from C# to VB
Example in C#
来源:https://stackoverflow.com/questions/9694688/aeroglass-with-vb-net