Chinaunix首页 | 论坛 | 博客
  • 博客访问: 930069
  • 博文数量: 210
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2070
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-19 21:54
文章分类

全部博文(210)

文章存档

2020年(2)

2019年(18)

2018年(27)

2017年(5)

2016年(53)

2015年(88)

2014年(17)

分类: C/C++

2015-10-28 07:59:40


点击(此处)折叠或打开

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;

  9. namespace WindowsFormsApplication2
  10. {
  11.     public partial class Form1 : Form
  12.     {
  13.         //int ClockCount = 0;
  14.         int ImageIndex = 1;
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }

  19.         private void checkBox1_CheckedChanged(object sender, EventArgs e)
  20.         {

  21.         }

  22.         private void button1_Click(object sender, EventArgs e)
  23.         {
  24.             ImageIndex++;
  25.             if (ImageIndex > 4)
  26.                 ImageIndex = 1;
  27.             pictureBox1.Image = Image.FromFile(ImageIndex.ToString() + ".jpg");
  28.         }

  29.         private void pictureBox1_Click(object sender, EventArgs e)
  30.         {

  31.         }

  32.        

  33.        




  34.     }
  35. }
图片效果:

          
        
        

阅读(1312) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~