lable picturebox等控件背景颜色透明
来源:互联网 发布:淘宝最新photoshop 编辑:程序博客网 时间:2024/05/17 00:55
这里的透明是用 控件的背景颜色与上层的背景色一致产生类似透明效果。
例:this.lable1.BackColor = Color.Transparent;
当设置控件为Disable(Enabled=false)时。上面的方法就不行了,这时要重写Enabled方法
public static void SetControlEnabled(Control c, bool enabled) { if (enabled) { SetWindowLong(c.Handle, GWL_STYLE, (~WS_DISABLED) & GetWindowLong(c.Handle, GWL_STYLE)); } else { SetWindowLong(c.Handle, GWL_STYLE, WS_DISABLED + GetWindowLong(c.Handle, GWL_STYLE)); } }
调用
SetControlEnabled(this.lable1, false);
this.lable1.BackColor = Color.Transparent;
- lable picturebox等控件背景颜色透明
- C#把Lable的背景颜色设为透明
- picturebox透明背景处理
- 设置picturebox 背景为透明
- WINFORM 设置PICTUREBOX背景透明
- C# WinForm 透明控件 PictureBox透明
- MFC更改控件字体颜色背景等
- CSS背景颜色透明
- 透明颜色背景
- echarts 背景颜色透明
- c# lable控件背景色透明
- WINCE系统Picturebox控件支持透明方法
- 控件透明背景
- VC控件背景透明
- QT 控件背景透明
- 控件背景透明代码
- 设置控件背景透明
- 静态控件背景透明
- 取消某内置输入法
- 什么是软件架构?
- java.math.BigDecimal使用示例
- ORA-00119: invalid specification for system parameter LOCAL_LISTENER
- Cannot open include file: 'd3dx9.h' 错误
- lable picturebox等控件背景颜色透明
- python算法--置换选择排序详细实现
- JAVA客户端调用memcached比较
- Understanding Factory Method and Abstract Factory Patterns(理解工厂方法模式和抽象工厂模式)
- Java内存溢出的详细解决方案
- 修改不能预置开关机动画问题
- 软件加壳的简易实现方式
- C# Dictionary
- asp.net中marquee标签使用