- UID
- 757807
- 在线时间
- 0 小时
- 最后登录
- 2015-4-19
- 注册时间
- 2014-4-25
- 宅魂
- 224 点
- 贡献
- 24 点
- 宅币
- 756 枚
- 宅の石(入宅度)
- 0 块
- 元气(技能点)
- 1 点
- 活跃
- 0 ℃
- 听众
- 10
- 收听
- 0
该用户从未签到
Continue
- 积分
- 1550
|
发表于 2014-4-28 10:28:14
|
显示全部楼层
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public int k=0;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
k++;
if (k == 1)
{
Bitmap 图片 = new Bitmap(@"D:\连接A.jpg");
tu.Image = 图片;
}
else if (k == 2)
{
Bitmap 图片1 = new Bitmap(@"D:\连接B.jpg");
tu.Image = 图片1;
}
else if (k == 3)
{
Bitmap 图片2 = new Bitmap(@"D:\连接C.jpg");
tu.Image = 图片2;
k = 0;
}
}
}
}
新手,不要笑我 |
|