基本信息
源码名称:C# 窗体随机移动
源码大小:4.39M
文件格式:.rar
开发语言:C#
更新时间:2020-12-26
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 1 元 
   源码介绍

来回移动窗体(图片),图片在桌面上来回漂浮

public partial class Form1 : Form
    {
        private string imgurlLeft = @"../../Picture/runleft.gif";
        private string imgurlRight = @"../../Picture/runright.gif";
        private string imgurlUp = @"../../Picture/runup.gif";
        private string imgurlDown = @"../../Picture/runDown.gif";
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FormMove fm1 = new FormMove(imgurlLeft, Direction.LEFT);
            FormMove fm2 = new FormMove(imgurlRight, Direction.RIGHT);
            FormMove fm3 = new FormMove(imgurlUp, Direction.UP);
            FormMove fm4 = new FormMove(imgurlDown, Direction.DOWN);
            Picture p1 = fm1.picture; 
            p1.Show();
            Picture p2 = fm2.picture; 
            p2.Show();
            Picture p3 = fm3.picture;
            p3.Show();
            Picture p4 = fm4.picture;
            p4.Show();

        }