C#之WinForm基础 timer模拟循环跑马灯
2016-09-17 18:37
267 查看
慈心积善融学习,技术愿为有情学。善心速造多好事,前人栽树后乘凉。我今于此写经验,愿见文者得启发。
1、UI界面
2、form1.cs
3、效果图
感恩曾经帮助过 心少朴 的人。
C#优秀,值得学习。Winform,WPF 都可以关注一下,眼界要开阔。
Visual Studio IDE很好用,推荐!
注:此文是自学笔记所生,质量中等,故要三思而后行。新手到此,不可照搬,应先研究其理象数,待能变通之时,自然跳出深坑。
1、UI界面
2、form1.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication5 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private string str = @"★☆☆☆☆☆☆☆"; private void timer1_Tick(object sender, EventArgs e) { str = str.Substring(str.Length - 1) + str.Substring(0, str.Length - 1); label1.Text = str; } } }
3、效果图
感恩曾经帮助过 心少朴 的人。
C#优秀,值得学习。Winform,WPF 都可以关注一下,眼界要开阔。
Visual Studio IDE很好用,推荐!
注:此文是自学笔记所生,质量中等,故要三思而后行。新手到此,不可照搬,应先研究其理象数,待能变通之时,自然跳出深坑。
相关文章推荐
- C# WinForm基础
- 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介
- C#Winform编程的基础知识
- C#之WinForm基础 查看控件属性栏的快捷键F4
- C#之WinForm基础 窗体与代码页相互切换的快捷键
- c# winform 控制台基础程序,冒泡排序法
- C#之WinForm基础 点击button关闭当前窗体,用this.close()
- 0基础学C#教程3--------winform中的vs工具箱不见了,怎么重新调出来?
- C#基础(WinForm窗体的单例模式,避免窗体被实例化多次)
- C#Winform编程的基础知识
- 实习总结:c#开发之旅(一)winform 基础。
- C# 基础(6)--Winform
- 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介
- C#基础(WinForm窗体的单例模式,避免窗体被实例化多次)
- C# winForm基础一 基础控件、属性、事件
- 在winForm下,c#实现出勤系统的客户端(基础类的设计)
- 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介 .
- 2.C#WinForm基础Email分析器
- C#之WinForm基础 添加多个窗体
- C#之WinForm基础 运行多个窗体时,点击按钮,一次关闭所有窗体