又一篇介绍透明控件的文章

Creating Transparent Controls in .NET Compact Framework
http://www.codeproject.com/KB/dotnet/TransparentControl.aspx



Introduction

.NET Compact Framework doesn't provide out-of-box controls with transparent background. This article shows how to create user controls to overcome this issue.

Background

In a recent .NET compact framework application I was working on, I needed to add an image to the form's background. I did it by using the code from this video tutorial from Microsoft. However, the video also told us that the label control (and other controls) in .NET compact framework doesn't support transparent background. You will have to create your own user control. I found a good article Creating gradient background with transparent labels in .NET Compact Framework by Per Ola Sæther. It helped me to create my solution.

posted @ 2009-10-10 19:27  黎波  阅读(2793)  评论(2编辑  收藏  举报