.NET c#屏保2(斜着跑)

窗口里添加个一个label;
代码:一个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 _02气泡屏保_斜着_
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        Timer timer1 = new Timer();
        private void Form1_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState = FormWindowState.Maximized;
            label1.Text = "      不许碰  \r\n   不许碰不许碰 \r\n不许碰不许碰不许碰";
            label1.Font = new Font("宋体", 40);
            label1.AutoSize = true;
            timer1.Interval = 10;
            timer1.Tick += Timer1_Tick;
            timer1.Start();
        }
        int x = 5;
        int y = 5;
        private void Timer1_Tick(object sender, EventArgs e)
       

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