需要半透明形式的帮助 [英] Need help with semi-transparent form

查看:58
本文介绍了需要半透明形式的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个模仿Windows桌面的应用程序,因此我需要带有可见图标的不可见窗体. TransparencyKey属性使大多数窗体透明,但在图标边缘周围留下了不可见"颜色的痕迹.有人知道解决此问题的方法吗?

I am creating an application that mimics the windows desktop, so I need a invisible form with visible icons. The TransparencyKey property makes most of the form transparent but leaves traces of the "invisible" color around the edges of the icons. Does anybody know a way to solve this?

推荐答案

我假设图标"是按钮或带有包含透明度的图像的图片框控件-如果是这样,请尝试渲染图标而不是表单的背景颜色.
I am assuming the "icons" are buttons or picturebox controls with an image that contains transparency - if so try rendering the icons against the Form''s background color instead.


这篇关于需要半透明形式的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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