AeroGlass with VB.net [duplicate]

☆樱花仙子☆ 提交于 2019-12-11 05:38:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!