• 大小: 72KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: C#
  • 标签: C#  

资源简介

C# 做的图像从右到左的移动,有程序代码,可以进入更改图片

资源截图

代码片段和文件信息

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

namespace WindowsApplication9
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            timer1.Enabled = true; 
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            int X = pictureBox1.Left;
            int Y = pictureBox1.Top;
            int W = pictureBox1.Width;
            int H = pictureBox1.Height;
            X -= 10;
            if (X <= -pictureBox1.Width)
            {
                X = this.Width; 
            }
            pictureBox1.SetBounds(X Y W Y);

        }
    }
}

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

     文件      24576  2011-04-30 12:24  飞鸟\WindowsApplication9\bin\Debug\WindowsApplication9.exe

     文件      24064  2011-04-30 12:24  飞鸟\WindowsApplication9\bin\Debug\WindowsApplication9.pdb

     文件       5632  2005-12-08 14:51  飞鸟\WindowsApplication9\bin\Debug\WindowsApplication9.vshost.exe

     文件        891  2011-04-30 12:24  飞鸟\WindowsApplication9\Form1.cs

     文件       3166  2011-04-30 12:24  飞鸟\WindowsApplication9\Form1.Designer.cs

     文件       6008  2011-04-30 12:24  飞鸟\WindowsApplication9\Form1.resx

     文件       4608  2011-05-11 08:31  飞鸟\WindowsApplication9\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        877  2011-05-11 08:25  飞鸟\WindowsApplication9\obj\Debug\WindowsApplication9.csproj.GenerateResource.Cache

     文件      24576  2011-04-30 12:24  飞鸟\WindowsApplication9\obj\Debug\WindowsApplication9.exe

     文件        180  2011-04-30 12:24  飞鸟\WindowsApplication9\obj\Debug\WindowsApplication9.Form1.resources

     文件      18222  2011-05-11 08:33  飞鸟\WindowsApplication9\obj\Debug\WindowsApplication9.Properties.Resources.resources

     文件        352  2011-05-11 08:45  飞鸟\WindowsApplication9\obj\WindowsApplication9.csproj.FileList.txt

     文件        478  2011-04-30 12:16  飞鸟\WindowsApplication9\Program.cs

     文件       1196  2011-04-30 12:16  飞鸟\WindowsApplication9\Properties\AssemblyInfo.cs

     文件       2860  2011-05-11 08:31  飞鸟\WindowsApplication9\Properties\Resources.Designer.cs

     文件       6189  2011-04-30 12:22  飞鸟\WindowsApplication9\Properties\Resources.resx

     文件       1102  2011-04-30 12:16  飞鸟\WindowsApplication9\Properties\Settings.Designer.cs

     文件        249  2011-04-30 12:16  飞鸟\WindowsApplication9\Properties\Settings.settings

    ..A.SH.      7168  2011-05-11 08:33  飞鸟\WindowsApplication9\Resources\Thumbs.db

     文件      17760  2011-05-11 08:26  飞鸟\WindowsApplication9\Resources\_1.jpg

     文件       3354  2011-05-11 08:36  飞鸟\WindowsApplication9\WindowsApplication9.csproj

     文件        946  2011-04-30 12:16  飞鸟\WindowsApplication9.sln

    ..A..H.     22016  2011-05-11 08:45  飞鸟\WindowsApplication9.suo

     目录          0  2011-05-18 08:54  飞鸟\WindowsApplication9\obj\Debug\TempPE

     目录          0  2011-05-18 08:54  飞鸟\WindowsApplication9\bin\Debug

     目录          0  2011-05-18 08:54  飞鸟\WindowsApplication9\obj\Debug

     目录          0  2011-05-18 08:54  飞鸟\WindowsApplication9\bin

     目录          0  2011-05-18 08:54  飞鸟\WindowsApplication9\obj

     目录          0  2011-05-18 08:54  飞鸟\WindowsApplication9\Properties

     目录          0  2011-05-18 08:54  飞鸟\WindowsApplication9\Resources

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

评论

共有 条评论