Groups
Groups
Sign in
Groups
Groups
microsoft.public.cn.dotnet.languages.vb
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
文本框背景能否实现透明
52 views
Skip to first unread message
iamnotmyth
unread,
Mar 31, 2008, 10:15:28 AM
3/31/08
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
如题..
我把窗体的背景改成了一张图片,然后在上面添了一个文本框,然后用textbox1.backcolor
= color.transport 无法实现透明效果..请问有没有办法做到让文本框透明呢?
v-l...@prcvap.microsoft.com
unread,
Mar 31, 2008, 11:34:38 PM
3/31/08
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
你好,
TextBox本身并不支持透明背景,所以你将它的BackColor属性设为Transparent无济于事。
我在codeproject网站上找到了一个实现支持透明背景的TextBox的例子,具体做法是从TextBox类中继承一个新类,在新类中将ControlStyle的SupportTransparentBackColor和UserPaint设为true,然后在需要画TextBox的时候用一个PictureBox作为背景。
详细内容,请访问以下链接:
http://www.codeproject.com/KB/edit/alphablendtextbox.aspx
希望对你有帮助。
刘婷
在线技术支持工程师
微软全球技术支持中心
jingxing
unread,
Mar 31, 2008, 11:40:05 PM
3/31/08
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
谢谢你的回答..我去参考一下!!
jingxing
unread,
Apr 7, 2008, 1:31:21 AM
4/7/08
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
不好意思,我去看过你给的示例.可是我没有办法打开C#那个工程.
能否给我
VB.NET
的示例呢?
非常感谢!
v-l...@prcvap.microsoft.com
unread,
Apr 14, 2008, 1:51:04 AM
4/14/08
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
你好,
这个C#示例项目是用
VS.NET
2003创建的。你可以用
VS.NET
2003打开,也可以用VS2005或VS2008打开这个项目。当然用新版本的VS打开
VS.NET
2003项目的时候,这个项目会升级为新版本的项目。
我目前还没找到
VB.NET
示例,其实无论用什么语言,解决问题的原理是一样的。
刘婷
马金泽
unread,
Jun 23, 2008, 1:42:00 AM
6/23/08
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
0 new messages