winform字体闪烁
来源:互联网 发布:json转化为字符串 编辑:程序博客网 时间:2024/05/16 12:58
让字体和颜色进行变化
方法1:
private void timer1_Tick(object sender, EventArgs e)
{
if (this.timer1.Interval%2==0)
{
this.Rtb_ItemCheck.ForeColor = Color.BlueViolet;
this.Rtb_ItemCheck.Font = new Font("微软雅黑", 10.5F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(134)));
}
else
{
this.Rtb_ItemCheck.ForeColor = Color.Red;
this.Rtb_ItemCheck.Font=new Font("微软雅黑", 9F,FontStyle.Regular, GraphicsUnit.Point, ((byte)(134)));
}
timer1.Interval++;
}
方法2:需要初始化控件背景
private void timer1_Tick(object sender, EventArgs e)
{
if (this.label1.BackColor==Color.Red)
{
this.label1.BackColor = Color.Aqua;
this.label1.Font = new Font("微软雅黑",15F,FontStyle.Bold,GraphicsUnit.Point,134);
}
else
{
this.label1.BackColor = Color.Red;
this.label1.Font = new Font("圆幼", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
}
}
- winform字体闪烁
- winform 闪烁
- winForm界面闪烁问题解决
- Winform 刷新闪烁
- Js 实现字体闪烁
- 字体闪烁特效
- android中的字体闪烁
- 闪烁字体的实现
- java 字体闪烁
- winform中实现任务栏闪烁
- Winform 自定义控件闪烁问题
- 解决WinForm界面闪烁问题
- 解决winform窗体闪烁问题
- C# winForm 窗体闪烁问题
- 解决winform窗体闪烁问题
- winform 控件闪烁的问题
- 解决winform窗体闪烁问题
- c语言 闪烁 字体设计
- 分布式服务系统的架构_java
- Mybatis那些事
- 筛素数法
- 第三章 DispatcherServlet详解
- Java基础进阶_day08_(Map集合,可变参数)
- winform字体闪烁
- 类有哪三个基本特性?各特性的优点
- c++的map函数讲解
- Android进阶知识点(定制视图,触摸事件)
- Java基础进阶_day09_(Collection集合和Map集合总结)
- 2013蓝桥杯-回文数字-java
- 报错 argument #2 is 'nil' '[not function]' expected
- doStartTag(),doEndTag()
- HDU-5068-Harry And Math Teacher(线段树)