拼图游戏(3*3)
public int n1 = 2; private void pictureBox1_Click(object sender, EventArgs e) { if (n1 == 2) { pictureBox10.BackgroundImage = pictureBox1.BackgroundImage; pictureBox1.BackgroundImage = pictureBox2.BackgroundImage; pictureBox2.BackgroundImage = pictureBox10.BackgroundImage; n1 = 1; pictureBox10.BorderStyle = pictureBox1.BorderStyle; pictureBox1.BorderStyle = pictureBox2.BorderStyle; pictureBox2.BorderStyle = pictureBox10.BorderStyle; } if (n1 == 4) { pictureBox10.BackgroundImage = pictureBox1.BackgroundImage; pictureBox1.BackgroundImage = pictureBox4.BackgroundImage; pictureBox4.BackgroundImage = pictureBox10.BackgroundImage; n1 = 1; pictureBox10.BorderStyle = pictureBox1.BorderStyle; pictureBox1.BorderStyle = pictureBox4.BorderStyle; pictureBox4.BorderStyle = pictureBox10.BorderStyle; } }
- 1
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助