VB 2005和表单标签透明 [英] VB 2005 and form label transparency

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

问题描述

第一次招贴的人好.我刚刚将我的第一个VB6应用程序转换为VB Express版本.我有一个要转换的大小适中的库,但是我选择了一个非常简单的小游戏程序进行试用转换时遇到了严重的问题.问题是这样.我在GUI中做了很多图形/美术工作,并且大量使用带有透明背景的标签.当我转换为VB Exp 2005时,标签不再透明,而是带有Form的背景颜色属性.这就是MS如何在VB 2005中实现透明性吗?如果是这样,那么该产品对我毫无用处.我是否无法为此准备VB6代码?有没有解决的办法?我一直在等待很长时间才能将我的代码提交到VB2005,因此,我将非常感谢您的反馈,但这将是一个秀场止步.我检查了标签属性,并将它们设置为透明.但是它们并不会像这样显示.我不敢相信没有成千上万的程序员遇到过这种情况.

Hello from a first time poster.  I have just converted my first VB6 application to a VB Express version.  I have a fair sized library that I would like to convert but I am having a severe problem with a very simple little game program that I selected for a trial conversion.  The problem is this.  I do a lot of graphic / art work in my GUI and heavily use labels with transparent backgrounds.  When I converted to VB Exp 2005 the labels are no longer transparent but rather carry the background color attribute of the Form.  Is this how MS implemented transparency in VB 2005?  If so the product is of no use to me whatsoever.   Did I fail to prep my VB6 code for this?  Is there a work around?  I would realy appreciate some feedback as I have been waiting so long to get my code to VB2005 but this would be a show stopper.  I checked the Labels attributes and they are set to transparent.  But they are not being displayed as such.  I can't believe that there are not thousands of programmers who have run into this.

预先感谢.

推荐答案


透明控件以父级为背景.因此,如果标签在图片框上方,并且其父级是表格,则表单背景将不显示在图片框中.




Transparent controls take the background of there parent.  So if the label is over a picture box and its parent is the form the forms background will be displayed not the pictureboxes



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

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