如何在移动开发中使标签透明 [英] How can I make a label transparent in mobile development

查看:75
本文介绍了如何在移动开发中使标签透明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我为表格放置了背景图片,目的是使表格上的特定标签透明.我尝试了几种方法并应用了一些示例代码,但没有一个可行.如果您给我一个样品,我将不胜感激.

谢谢.

Hello,

I have placed a background picture for the form and my aim is to make the specific label on the form transparent. I tried a few ways and applied a few sample code but none of them work out. If you give me a sample, I would really appreciate it.

Thanks.

<br />
''That is how I place a backgroudn picture for teh form<br />
<br />
<pre lang="vb">Protected Overrides Sub OnPaintBackground(ByVal e As PaintEventArgs)<br />
    MyBase.OnPaintBackground(e)<br />
    e.Graphics.DrawImage(My.Resources.form, 0, 0)<br />
End Sub</pre><br />
<br />
<br />

推荐答案

我希望您会发现以下信息:
如何在Windows窗体中使用透明图像和标签 [
I expect you will find this informative:
How to Use Transparent Images and Labels in Windows Forms[^]

Hope it works out... this should be quite similar on Windows Mobile

Happy coding :-D
Espen Harlinn


这篇关于如何在移动开发中使标签透明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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