Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 Form1()
- {
- InitializeComponent();
- }
- int a;
- private void button1_Click(object sender, EventArgs e)
- {
- this.pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.es;
- }
- private void button2_Click(object sender, EventArgs e)
- {
- this.pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.br;
- }
- private void pictureBox1_Click(object sender, EventArgs e)
- {
- switch (a)
- {
- case 1:
- pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.ar;
- a = a + 1;
- break;
- case 2:
- pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.es;
- a = a +1;
- break;
- case 3:
- pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.br;
- a = a + 1;
- break;
- case 4:
- pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.rd;
- a = a + 1;
- break;
- case 5:
- pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.al;
- a = 1;
- break;
- }
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.selec;
- a = 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement