资源简介
界面图片轮播效果
代码片段和文件信息
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个文件信息
- 上一篇:C# 五子棋 游戏源码
- 下一篇:Modbus通讯 串口通讯
相关资源
- 蚂蚁爬杆+图形界面+C#+ide=vs08
- c#坦克大战,有墙体有爆炸等效果
- C# Winform 弹窗等待效果图
- WPF漂亮倒计时界面
- C#界面美化 (最好用的免费的第三方
- winform 60种非常漂亮界面样式\\皮肤(
- C#编写ActiveX控件(纯接口,无界面)
- C#实现的基于BP神经网络的数据预测降
- C#上位机与单片机的完美结合内附有用
- C# WM wince UI集合版7 IN 1
- 健身俱乐部管理系统的设计与实现.
- C#图书管理系统源码(含数据库)-附
- 一个WPF实现的翻书效果的
- winform 60种非常漂亮界面样式\\皮肤(
- C#界面设计教程
- WPF 3D图片触摸屏滑动效果(苹果浏览
- wpf照片墙带有3d效果.rar
- DotNetBar换肤
- C# 电梯人机界面设计
- winform最全60种非常漂亮界面样式\\皮肤
- C#应用程序界面美化包
- 新闻发布系统包括用户界面部分和后
- 简单监控界面软件设计
- C# Winform 模仿360系统安全工具界面-
- 免费漂亮的WPF界面框架
- C#界面美化第三方控件(内含皮肤、面
- C#界面设计
- Winform60种ssk皮肤界面文件
- WPF开发教程 ----WPF C# 编程 界面开发(
- c#仿QQ聊天IM界面实现(源代码)
评论
共有 条评论