Mohamed Lotfi

Mohamed Lotfi

  • NA
  • 1
  • 2.2k

I want to make form include 4 checkboxs and vote buttom and set rules with clicking on 4 checkboxs a...

Sep 23 2012 8:57 PM
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 WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Raul_CheckedChanged(object sender, EventArgs e)
{

}

private void vote_Click(object sender, EventArgs e)
{
if (Robben.Checked&Pizzaro.Checked &Raul.Checked & Kroos.Checked)
{
MessageBox.Show("Accepted palyers");
}
else if (Robben.Checked && Pizzaro.Checked && Raul.Checked || Kroos.Checked)
{
MessageBox.Show(" Good 3 Players");
}
else if (Robben.Checked && Pizzaro.Checked ||Raul.Checked || Kroos.Checked)
{
MessageBox.Show("Very Good 2 Players");
}

else if (Robben.Checked || Pizzaro.Checked || Raul.Checked ||Kroos.Checked)
{
MessageBox.Show("Excellent Player");
}

else
{
MessageBox.Show("Failed");
}
}
}
}