• 大小: 4.39M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-05-02
  • 语言: C#
  • 标签: 移动  窗体  

资源简介

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

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MovePricture
{
    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();

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1326080  2020-12-26 13:30  MovePricture\MovePricture\bin\Debug\MovePricture.exe

     文件      30208  2020-12-26 13:30  MovePricture\MovePricture\bin\Debug\MovePricture.pdb

     文件      14328  2020-12-26 13:27  MovePricture\MovePricture\bin\Debug\MovePricture.vshost.exe

     文件       1250  2020-12-26 13:28  MovePricture\MovePricture\Form1.cs

     文件       2024  2020-12-26 09:22  MovePricture\MovePricture\Form1.Designer.cs

     文件       5814  2020-12-26 09:22  MovePricture\MovePricture\Form1.resx

     文件        430  2020-12-26 09:55  MovePricture\MovePricture\FormMove.cs

     文件       4371  2020-12-26 11:19  MovePricture\MovePricture\MovePricture.csproj

     文件        168  2020-12-26 11:19  MovePricture\MovePricture\MovePricture.csproj.user

     文件        948  2020-12-26 13:30  MovePricture\MovePricture\obj\Debug\MovePricture.csproj.FileListAbsolute.txt

     文件       1062  2020-12-26 13:30  MovePricture\MovePricture\obj\Debug\MovePricture.csproj.GenerateResource.Cache

     文件    1326080  2020-12-26 13:30  MovePricture\MovePricture\obj\Debug\MovePricture.exe

     文件        180  2020-12-26 13:30  MovePricture\MovePricture\obj\Debug\MovePricture.Form1.resources

     文件      30208  2020-12-26 13:30  MovePricture\MovePricture\obj\Debug\MovePricture.pdb

     文件        180  2020-12-26 13:30  MovePricture\MovePricture\obj\Debug\MovePricture.Picture.resources

     文件    1314779  2020-12-26 13:30  MovePricture\MovePricture\obj\Debug\MovePricture.Properties.Resources.resources

     文件       5120  2020-12-26 11:19  MovePricture\MovePricture\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件      16667  2020-12-26 11:05  MovePricture\MovePricture\Picture\runDown.gif

     文件      11496  2020-12-26 09:23  MovePricture\MovePricture\Picture\runleft.gif

     文件      11530  2020-12-26 11:11  MovePricture\MovePricture\Picture\runright.gif

     文件    1274044  2020-12-26 11:17  MovePricture\MovePricture\Picture\runup.gif

     文件       3664  2020-12-26 13:28  MovePricture\MovePricture\Picture.cs

     文件       2675  2020-12-26 10:52  MovePricture\MovePricture\Picture.Designer.cs

     文件       6012  2020-12-26 10:52  MovePricture\MovePricture\Picture.resx

     文件        493  2020-12-26 09:15  MovePricture\MovePricture\Program.cs

     文件       1356  2020-12-26 09:15  MovePricture\MovePricture\Properties\AssemblyInfo.cs

     文件       3858  2020-12-26 11:19  MovePricture\MovePricture\Properties\Resources.Designer.cs

     文件       6923  2020-12-26 11:19  MovePricture\MovePricture\Properties\Resources.resx

     文件       1097  2020-12-26 09:15  MovePricture\MovePricture\Properties\Settings.Designer.cs

     文件        249  2020-12-26 09:15  MovePricture\MovePricture\Properties\Settings.settings

............此处省略15个文件信息

评论

共有 条评论