资源简介

界面图片轮播效果

资源截图

代码片段和文件信息

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 WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public int index = 0;
        //滚动速度
        public int roll = 3;
        public void rolling()
        {
            this.button1.Enabled = false;
            this.button2.Enabled = false;
            if (ee)
            {
                this.pictureBox5.Left += roll;
                this.pictureBox4.Left += roll;
                this.pictureBox3.Left += roll;
                this.pictureBox2.Left += roll;
                this.pictureBox1.Left += roll;
            }
            else
            {
                this.pictureBox5.Left -= roll;
                this.pictureBox4.Left -= roll;
                this.pictureBox3.Left -= roll;
                this.pictureBox2.Left -= roll;
                this.pictureBox1.Left -= roll;
            }
            juli2 += roll;
            if (juli2 < 0)
            {
                juli2 = -juli2;
            }
            if (juli2 >= juli)
            {
                dian = -360;
                ee = true;
                this.timer2.Stop();
                juli2 = 0;
                this.button1.Enabled = true;
                this.button2.Enabled = true;
            }
            if (this.pictureBox1.Location.X >= (60 + 210 * 2))
            {
                index++;
                this.pictureBox1.Left = dian - (210 * 1); 
                this.pictureBox1.Image=this.imageList1.Images[index];
            }
            if (this.pictureBox2.Location.X >= (60 + 210 * 2))
            {
                index++;
                this.pictureBox2.Left = dian - (210 * 1);
                this.pictureBox2.Image = this.imageList1.Images[index];
            }
            if (this.pictureBox3.Location.X >= (60 + 210 * 2))
            {
                index++;
                this.pictureBox3.Left = dian - (210 * 1);
                this.pictureBox3.Image = this.imageList1.Images[index];
            }
            if (this.pictureBox4.Location.X >= (60 + 210 * 2))
            {
                index++;
                this.pictureBox4.Left = dian - (210 * 1);
                this.pictureBox4.Image = this.imageList1.Images[index];
            }
            if (this.pictureBox5.Location.X >= (60 + 210 * 2))
            {
                index++;
                this.pictureBox5.Left = dian - (210 * 1);
                this.pictureBox5.Image = this.imageList1.Images[index];
            }
            if (index==this.imageList1.Images.Count-1)
            {
                index = -1;
            }
           
        }
        public int juli = 0;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2021-01-08 14:42  WindowsFormsApplication1\
     目录           0  2014-11-03 17:06  WindowsFormsApplication1\WindowsFormsApplication1\
     文件         187  2014-10-30 21:02  WindowsFormsApplication1\WindowsFormsApplication1\App.config
     文件        9728  2014-11-03 22:31  WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
     文件        5152  2014-11-03 23:08  WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
     文件       80759  2014-11-03 22:31  WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
     文件         536  2014-10-30 21:02  WindowsFormsApplication1\WindowsFormsApplication1\Program.cs
     目录           0  2014-11-01 14:50  WindowsFormsApplication1\WindowsFormsApplication1\Properties\
     文件        1368  2014-10-30 21:02  WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        3276  2014-10-30 21:05  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        6217  2014-10-30 21:05  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx
     文件        1111  2014-10-30 21:02  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2014-10-30 21:02  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings
     目录           0  2014-11-01 14:50  WindowsFormsApplication1\WindowsFormsApplication1\Resources\
     文件       27579  2014-10-30 21:05  WindowsFormsApplication1\WindowsFormsApplication1\Resources\middle-image3-3.jpg
     文件        4185  2014-11-03 17:08  WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj
     目录           0  2014-11-01 14:50  WindowsFormsApplication1\WindowsFormsApplication1\bin\
     目录           0  2014-11-01 14:50  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
     文件       91648  2021-01-08 14:42  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件         187  2014-10-30 21:02  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config
     文件       34304  2021-01-08 14:42  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       23168  2021-01-08 14:42  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         187  2014-10-30 21:02  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config
     文件         490  2019-03-19 12:46  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     目录           0  2014-11-03 22:03  WindowsFormsApplication1\WindowsFormsApplication1\images\
     文件        4305  2014-11-03 22:03  WindowsFormsApplication1\WindowsFormsApplication1\images\1010.png
     文件        4274  2014-11-03 17:07  WindowsFormsApplication1\WindowsFormsApplication1\images\11.png
     文件        4286  2014-11-03 17:07  WindowsFormsApplication1\WindowsFormsApplication1\images\22.png
     文件        4302  2014-11-03 17:07  WindowsFormsApplication1\WindowsFormsApplication1\images\33.png
     文件        4589  2014-11-03 17:07  WindowsFormsApplication1\WindowsFormsApplication1\images\44.png
     文件        4532  2014-11-03 17:07  WindowsFormsApplication1\WindowsFormsApplication1\images\55.png
............此处省略23个文件信息

评论

共有 条评论