class1.cs

来自「c基本语法的学习」· CS 代码 · 共 30 行

CS
30
字号
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;

namespace dazi
{
    class Class1
    {        
        private Label A;
        private Form F;       
        public Class1(Label a,Form f)
        {
            this.A = a;
            this.F = f;
        }
        public void move()
        {
            do
            {
                this.A.Location = new Point(this.A.Location.X, this.A.Location.Y + 10);
                Thread.Sleep(500);
            } while (this.A.Location.Y < this.F.Height - 100);
            this.A.Dispose();            
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?