• 大小: 0.22M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: winform  图片  图片轮播  

资源简介


资源截图

代码片段和文件信息

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

namespace ProductTumblingShown
{
    public partial class Frm_Main : Form
    {
        int left = 0;
        public Frm_Main()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            left = 10;  //初始化变量left的值
            this.panel1.Left += left;  //设置panel1控件距容器左边缘之间的距离
            int width = this.Width - this.panel1.Width;  //初始化变量width
            if (this.panel1.Left > width)  //当panel1控件距容器左边缘之间的距离大于width时
            {
                this.timer1.Enabled = false;  //禁用计时器timer1
            

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-22 23:11  ProductTumblingShown\
     文件         950  2013-04-24 09:22  ProductTumblingShown.sln
     文件       15872  2010-11-04 18:55  ProductTumblingShown.suo
     目录           0  2011-12-22 23:11  ProductTumblingShown\bin\
     目录           0  2013-04-24 09:23  ProductTumblingShown\bin\Debug\
     文件      100352  2013-04-24 09:23  ProductTumblingShown\bin\Debug\ProductTumblingShown.exe
     文件       24064  2013-04-24 09:23  ProductTumblingShown\bin\Debug\ProductTumblingShown.pdb
     文件        2574  2010-07-10 22:38  ProductTumblingShown\Frm_Main.cs
     文件        7318  2010-07-09 17:34  ProductTumblingShown\Frm_Main.designer.cs
     文件      141087  2010-07-09 17:34  ProductTumblingShown\Frm_Main.resx
     目录           0  2011-12-22 23:11  ProductTumblingShown\obj\
     目录           0  2013-04-24 09:23  ProductTumblingShown\obj\Debug\
     文件        7212  2013-04-24 09:21  ProductTumblingShown\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        2727  2013-04-24 09:23  ProductTumblingShown\obj\Debug\ProductTumblingShown.csproj.FileListAbsolute.txt
     文件         850  2013-04-24 09:23  ProductTumblingShown\obj\Debug\ProductTumblingShown.csproj.GenerateResource.Cache
     文件        1757  2013-04-24 09:23  ProductTumblingShown\obj\Debug\ProductTumblingShown.csprojResolveAssemblyReference.cache
     文件      100352  2013-04-24 09:23  ProductTumblingShown\obj\Debug\ProductTumblingShown.exe
     文件       89725  2013-04-24 09:23  ProductTumblingShown\obj\Debug\ProductTumblingShown.Frm_Main.resources
     文件       24064  2013-04-24 09:23  ProductTumblingShown\obj\Debug\ProductTumblingShown.pdb
     文件         180  2013-04-24 09:23  ProductTumblingShown\obj\Debug\ProductTumblingShown.Properties.Resources.resources
     目录           0  2011-12-22 23:11  ProductTumblingShown\obj\Debug\Refactor\
     目录           0  2013-04-24 09:21  ProductTumblingShown\obj\Debug\TempPE\
     文件        4608  2013-04-24 09:21  ProductTumblingShown\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件        4009  2013-04-24 09:21  ProductTumblingShown\ProductTumblingShown.csproj
     文件         504  2010-07-09 17:31  ProductTumblingShown\Program.cs
     目录           0  2011-12-22 23:11  ProductTumblingShown\Properties\
     文件        1372  2010-07-09 17:30  ProductTumblingShown\Properties\AssemblyInfo.cs
     文件        2880  2013-04-24 09:21  ProductTumblingShown\Properties\Resources.Designer.cs
     文件        5612  2010-07-09 17:30  ProductTumblingShown\Properties\Resources.resx
     文件        1120  2013-04-24 09:21  ProductTumblingShown\Properties\Settings.Designer.cs
     文件         249  2010-07-09 17:30  ProductTumblingShown\Properties\Settings.settings
............此处省略0个文件信息

评论

共有 条评论