VB.Net 2010中的透明表单 [英] Transparent Form in VB.Net 2010

查看:96
本文介绍了VB.Net 2010中的透明表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使表单的某些部分具有不同的不透明度。例如,我只希望同一个表单的顶部具有50%的不透明度而另一部分只是正常的。我目前使用

使用



Me.Opacity = 0.5

解决方案

System.Windows.Forms 中没有此类功能。一般来说,透明度实现在这个库中非常糟糕(WPF更好)。您可以在自己的渲染级别执行任何操作,但在控件级别上,您无法真正依赖.NET FCL实现。



-SA

How do i make certain parts of the form to have different opacity. For example i want only the top part of the same form to have 50% opacity and the other part to be just normal. I am currently
using

Me.Opacity = 0.5

解决方案

There is no such feature in System.Windows.Forms. In general, transparency implementation is quite bad in this library (and WPF is way better). You can do whatever you want at the level of your own rendering, but at the level of controls you cannot really rely on the .NET FCL implementation.

—SA


这篇关于VB.Net 2010中的透明表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆