.NET c#屏保1(绕着屏幕跑)

运动轨迹
.NET c#屏保1(绕着屏幕跑)_第1张图片
代码:四个timer实现:

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 _07气泡屏保
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        Label lb = new Label();//实例化创建一个新的对象
        Timer time = new Timer();//创建一个timer
        Timer time1 = new Timer();
        Timer time2 = new Timer();
        Timer time3 = new Timer();
        private void Form1_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None;//去边框
            this.WindowState = FormWindowState.Maximized

你可能感兴趣的:(.NET项目实例)