Wince下透明Label的实现(vb.net)
来源:互联网 发布:疯狂java讲义好不好 编辑:程序博客网 时间:2024/03/29 19:15
在WinCE下实现透明Label,搞了半天,终于在网上找到正解,还是很不容易的,现在把解决方案理一下。
步骤如下:
(0)建个空工程
(1)拖个PictureBox控件进来,名称为PictureBox1;
(2)拖个Label控件进来,名称为Label1;
(3)将Label控件放到PictureBox上面,并把Visable属性设置成False
(4)在Form1_Load事件里加入以下代码:
(5)加入以下变量定义和DrawLabel函数
(6) 创建pictureBox1_Paint函数,加入以下代码:
(7)运行一下吧,看看效果
<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
- Wince下透明Label的实现(vb.net)
- WinCE下透明Label闪烁的问题及解决方案(vb.net)
- .NET Label控件的透明
- VB.net编程实现Wince下的图片按钮自定义控件
- WINCE 5.0 label背景透明
- WinCE下VB.NET读写注册表的参考代码
- vb.net生成Wince下的图片文字混编工具栏
- WinCE下VB.NET读写注册表的参考代码
- VB.NET 实现自定义控件的透明背景
- pictureBox上透明Label的实现
- vb.net简单实现透明窗体显示出背景透明的png
- vb.net--Label控件
- vb.net、vb播放声音 wince下播放声音文件(wav)
- [VB.NET].net 下窗体透明,窗体上控件不透明
- WINCE 下实现类TransparenBlt 的BMP 透明色显示功能
- [VB.NET源码]开发的WinCE下的串口通讯类
- [VB.NET源码]开发的WinCE下的串口通讯类
- VB中透明图象的实现
- OpenGL教程之旋转
- 以boost factory & boost function实现对象工厂设计模式
- STEPS To Success – Day 1
- JNDI学习三
- OpenGL教程之向3D进军
- Wince下透明Label的实现(vb.net)
- OpenGL教程之纹理映射
- OpenGL教程之纹理映射
- 基本的Hibernate配置文件
- 学习安装Debian
- 图论,求有向图的强连通分支
- Core Dump
- bind 查询日志与一般启动日志分离保存
- MySQL直接执行和预处理执行效率比较示例