Quiz Game


Quiz Game

 

namespace KBC1
{
    public partial class Form1 : Form
    {
        Form2 F2 = new Form2();
     
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            richTextBox1.Text = "IN WHICH DIRECTION DOES A MUSLIM PRAY ?";
            button1.Text = "A ) MECCA'S DIRECTION";
            button2.Text = "B) EAST";
            button3.Text = "C) NEARBY MOSQUE'S DIRECTION";
            button4.Text = "D) SOUTH";
            richTextBox1.Enabled = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (richTextBox1.Text == "IN WHICH DIRECTION DOES A MUSLIM PRAY ?")
            {

                // MessageBox.Show(" RS 1000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label1.Text = "1) 1000*";

                richTextBox1.Text = "WHEN DID SOVIENT UNION BREAK DOWN ?";
                button1.Text = "A ) 1969";
                button2.Text = "B) 1979";
                button3.Text = "C) 1989";
                button4.Text = "D) 1999";
                F2.label1.Text = "YOU HAVE WON RS. 0";

 

            }
            else if (richTextBox1.Text == "WHICH IS THE COMMON EUROPIAN CURRENCY ?")
            {

                // MessageBox.Show(" RS 10,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label5.Text = "5) 10,000*";

                richTextBox1.Text = "WHAT IS THE SYMBOL OF VICTORY ?";
                button1.Text = "A ) DOWNWARD THUMB";
                button2.Text = "B) DOVE WITH OLIVE BRANCHES";
                button3.Text = "C) HORES";
                button4.Text = "D) TWO FINGER IN V SHAPE";
                F2.label1.Text = "YOU HAVE WON RS. 10,000";


            }
            else if (richTextBox1.Text == "WHO LOST HIS TEETH WHILE WRITING MAHABHARAT ?")
            {

                // MessageBox.Show(" RS 40,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label7.Text = "7) 40,000*";

                richTextBox1.Text = "WHO ADOPTED UNIVERSAL DECLARATION OF HUMAN RIGHTS ?";
                button1.Text = "A ) AMNESTY INTERNATIONAL";
                button2.Text = "B) U N";
                button3.Text = "C) NATO";
                button4.Text = "D) COMMON WEALTH";
                F2.label1.Text = "YOU HAVE WON RS. 10,000";


            }
            else if (richTextBox1.Text == "IN THE RHYME WHERE DID HUMPTY DUMPTY SIT ?")
            {

                //  MessageBox.Show(" RS 6,25,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label11.Text = "11) 6,25,000*";

                richTextBox1.Text = "WHO WAS ALSO A BRITISH CITIZEN ?";
                button1.Text = "A ) ADOLF HITLER";
                button2.Text = "B) SARDAR PATEL";
                button3.Text = "C) PANDIT NEHRU";
                button4.Text = "D) BENITTO MUSSOLINI";
                F2.label1.Text = "YOU HAVE WON RS. 3,20,000";

 

            }
             else if (richTextBox1.Text == "HOW MANY OF ENGLISH MUNARCHS ARE NAMED ELIZABETH ?")
            {

                // MessageBox.Show(" RS 50,00,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label14.Text = "14) 50,00,000*";

                richTextBox1.Text = "WHICH PAKISTHANI LEADER SIGNED SIMLA AGREEMENT ?";
                button1.Text = "A)ZIA HL HAQ";
                button2.Text = "B) AGAB KHAN";
                button3.Text = "C) ZULFIKAR ALI BHUTTO";
                button4.Text = "D) YAHYA KHAN";
              

 

 

            }
        

            else
            {

                F2.Show();


            }

        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (richTextBox1.Text == "WHEN DID SOVIENT UNION BREAK DOWN ?")
            {
                // MessageBox.Show(" RS 2000 ", "TOTAL AMOUNT WON", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                label2.Text = "2) 2,000*";
                richTextBox1.Text = "WHICH OF THESE IS A SYMBOL OF PEACE ?";
                button1.Text = "A ) LOTUS";
                button2.Text = "B) TWO LEAVES";
                button3.Text = "C) HAND";
                button4.Text = "D) DOVE WITH OILVE BRANCH";
                F2.label1.Text = "YOU HAVE WON RS. 0";

            }
            else if (richTextBox1.Text == "WHO PATRONISED KALIDAS ?")
            {

                // MessageBox.Show(" RS 1,60,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label9.Text = "9) 1,60,000*";

                richTextBox1.Text = "WHO TOUCH TURNED ALL TO GOLD ?";
                button1.Text = "A ) ARGUS";
                button2.Text = "B) AURALIUS";
                button3.Text = "C) AURUM";
                button4.Text = "D) MIDAS";
                F2.label1.Text = "YOU HAVE WON RS. 10,000";


            }
            else if (richTextBox1.Text == "WHO WAS ALSO A BRITISH CITIZEN ?")
            {

                // MessageBox.Show(" RS 12,50,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label12.Text = "12) 12,50,000*";

                richTextBox1.Text = "HOW DO YOU SAY GOOD BYE IN JAPANESE ?";
                button1.Text = "A ) NA HONDO";
                button3.Text = "C) SHO YU";
                button2.Text = "B) SAYONARA";
                button4.Text = "D) WAKA";
                F2.label1.Text = "YOU HAVE WON RS. 3,20,000";

 

            }


            else
            {


                F2.Show();
                this.Hide();
            }
        }


        private void button4_Click(object sender, EventArgs e)
        {
            if (richTextBox1.Text == "WHICH OF THESE IS A SYMBOL OF PEACE ?")
            {

                // MessageBox.Show(" RS 3,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label3.Text = "3) 3,000*";

                richTextBox1.Text = "WHICH OF THESE ANIMALS LAUGHS ?";
                button1.Text = "A ) TIGER";
                button2.Text = "B) HYNA";
                button3.Text = "C) RHINO";
                button4.Text = "D) ZEEBRA";
                F2.label1.Text = "YOU HAVE WON RS. 0";

            }

            else if (richTextBox1.Text == "WHAT IS THE SYMBOL OF VICTORY ?")
            {

                //MessageBox.Show(" RS 20,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label6.Text = "6) 20,000*";

                richTextBox1.Text = "WHO LOST HIS TEETH WHILE WRITING MAHABHARAT ?";
                button1.Text = "A ) GANESH";
                button2.Text = "B) VEDA VYAS";
                button3.Text = "C) VALMIKI";
                button4.Text = "D) DUSHASAN";
                F2.label1.Text = "YOU HAVE WON RS. 10,000";


            }
            else if (richTextBox1.Text == "WHO TOUCH TURNED ALL TO GOLD ?")
            {

                // MessageBox.Show(" RS 3,20,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label10.Text = "10) 3,20,000*";

                richTextBox1.Text = "IN THE RHYME WHERE DID HUMPTY DUMPTY SIT ?";
                button1.Text = "A ) WALL";
                button2.Text = "B) KINGS HORSE";
                button3.Text = "C) TREE";
                button4.Text = "D) THRONE";
                F2.label1.Text = "YOU HAVE WON RS. 3,20,000";


            }
            else
            {
                F2.Show();
                this.Hide();
            }
        }


        private void button2_Click(object sender, EventArgs e)
        {
            if (richTextBox1.Text == "WHO ADOPTED UNIVERSAL DECLARATION OF HUMAN RIGHTS ?")
            {

                // MessageBox.Show(" RS 80,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label8.Text = "8) 80,000*";

                richTextBox1.Text = "WHO PATRONISED KALIDAS ?";
                button1.Text = "A) AKBAR";
                button2.Text = "B) CHANDRAGUPTH";
                button3.Text = "C) VIKRAMADHITHYA";
                button4.Text = "D) KRISHNADEVARAYA";
                F2.label1.Text = "YOU HAVE WON RS. 10,000";

 

            }
            else if (richTextBox1.Text == "WHICH PAKISTHANI LEADER SIGNED SIMLA AGREEMENT ?")
            {
                F2.label1.Text = "YOU HAVE WON RS. 1,00,00,000";
              F2.Show();
            }
            else if (richTextBox1.Text == "WHICH OF THESE ANIMALS LAUGHS ?")
            {

                // MessageBox.Show(" RS 5,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label4.Text = "4) 5,000*";

                richTextBox1.Text = "WHICH IS THE COMMON EUROPIAN CURRENCY ?";
                button1.Text = "A ) EURO";
                button2.Text = "B) YEN";
                button3.Text = "C) EUROPEAN CURRENCY";
                button4.Text = "D) POUND";
                F2.label1.Text = "YOU HAVE WON RS. 0";


            }
            else if (richTextBox1.Text == "HOW DO YOU SAY GOOD BYE IN JAPANESE ?")
            {

                // MessageBox.Show(" RS 25,00,000 ", "AMOUNT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                label13.Text = "13) 25,00,000*";

                richTextBox1.Text = "HOW MANY OF ENGLISH MUNARCHS ARE NAMED ELIZABETH ?";
                button1.Text = "A ) 2";
                button2.Text = "B) 3";
                button3.Text = "C) 1";
                button4.Text = "D) 4";
                F2.label1.Text = "YOU HAVE WON RS. 3,20,000";

 

            }
            else
            {
                F2.Show();
                this.Hide();
            }

 

 

 

        }

        private void button5_Click(object sender, EventArgs e)
        {
            if (richTextBox1.Text == "IN WHICH DIRECTION DOES A MUSLIM PRAY ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 0";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHICH IS THE COMMON EUROPIAN CURRENCY ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 5,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHO LOST HIS TEETH WHILE WRITING MAHABHARAT ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 20,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "IN THE RHYME WHERE DID HUMPTY DUMPTY SIT ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 3,20,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "HOW MANY OF ENGLISH MUNARCHS ARE NAMED ELIZABETH ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 25,00,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHICH PAKISTHANI LEADER SIGNED SIMLA AGREEMENT ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 50,00,000";
                F2.Show();
                this.Hide();
            }

            else if (richTextBox1.Text == "WHEN DID SOVIENT UNION BREAK DOWN ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 1000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHICH OF THESE ANIMALS LAUGHS ?")
            {
                F2.label1.Text = "YOU HAV HAVE WON Rs. 40,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHICH OF THESE ANIMALS LAUGHS ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs.3,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "HOW DO YOU SAY GOOD BYE IN JAPANESE ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 12,50,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHO PATRONISED KALIDAS ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 80,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHO WAS ALSO A BRITISH CITIZEN ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 6,25,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHICH OF THESE IS A SYMBOL OF PEACE ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 2,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHAT IS THE SYMBOL OF VICTORY ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs.10,000";
                F2.Show();
                this.Hide();
            }
            else if (richTextBox1.Text == "WHO TOUCH TURNED ALL TO GOLD ?")
            {
                F2.label1.Text = "YOU HAVE WON Rs. 1,60,000";
                F2.Show();
                this.Hide();
            }
            else
            {
            }

 

 

 

        }

        private void button6_Click(object sender, EventArgs e)
        {
            MessageBox.Show("THIS PRODUCT IS IN TESTING ,SO PLEASE SEND YOUR SUGGETIONS,IN SRVMR,UNDER JENU FOLDER,UNDER THE FOLDER NAME PROBLEM", "SUGGETIONS", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void checkBox2_CheckedChanged(object sender, EventArgs e)
        {

 

        }

        private void checkBox1_CheckedChanged_1(object sender, EventArgs e)
        {
            if (checkBox1.Checked == true)
            {
                if (richTextBox1.Text == "IN WHICH DIRECTION DOES A MUSLIM PRAY ?")
                {


                    button3.Text = "";
                    button4.Text = "";
                    checkBox1.Enabled = false;

 


                }
                else if (richTextBox1.Text == "WHICH IS THE COMMON EUROPIAN CURRENCY ?")
                {


                    button2.Text = "";

                    button4.Text = "";
                    checkBox1.Enabled = false;

 

                }
                else if (richTextBox1.Text == "WHO LOST HIS TEETH WHILE WRITING MAHABHARAT ?")
                {


                    button3.Text = "";
                    button4.Text = "";
                    checkBox1.Enabled = false;


                }
                else if (richTextBox1.Text == "IN THE RHYME WHERE DID HUMPTY DUMPTY SIT ?")
                {


                    button2.Text = "";

                    button4.Text = "";
                    checkBox1.Enabled = false;

 

                }
                else if (richTextBox1.Text == "HOW MANY OF ENGLISH MUNARCHS ARE NAMED ELIZABETH ?")
                {


                    button2.Text = "";
                    button3.Text = "";

                    checkBox1.Enabled = false;

 

 

                }
                else if (richTextBox1.Text == "WHICH PAKISTHANI LEADER SIGNED SIMLA AGREEMENT ?")
                {
                    button1.Text = "";
                    button3.Text = "";
                    checkBox1.Enabled = false;
                }
                else if (richTextBox1.Text == "WHO ADOPTED UNIVERSAL DECLARATION OF HUMAN RIGHTS ?")
                {
                    button3.Text = "";
                    button4.Text = "";
                    checkBox1.Enabled = false;


                }
                else if (richTextBox1.Text == "WHICH OF THESE ANIMALS LAUGHS ?")
                {


                    button1.Text = "";

                    button4.Text = "";
                    checkBox1.Enabled = false;

                }
                else if (richTextBox1.Text == "HOW DO YOU SAY GOOD BYE IN JAPANESE ?")
                {


                    button1.Text = "";

                    button4.Text = "";
                    checkBox1.Enabled = false;

 

                }
                else if (richTextBox1.Text == "WHEN DID SOVIENT UNION BREAK DOWN ?")
                {

                    button2.Text = "";

                    button4.Text = "";
                    checkBox1.Enabled = false;

                }
                else if (richTextBox1.Text == "WHO PATRONISED KALIDAS ?")
                {


                    button1.Text = "";

                    button4.Text = "";
                    checkBox1.Enabled = false;

                }
                else if (richTextBox1.Text == "WHO WAS ALSO A BRITISH CITIZEN ?")
                {

 

                    button2.Text = "";
                    button4.Text = "";
                    checkBox1.Enabled = false;


                }
                if (richTextBox1.Text == "WHICH OF THESE IS A SYMBOL OF PEACE ?")
                {


                    button2.Text = "";
                    button3.Text = "";

                    checkBox1.Enabled = false;

                }

                else if (richTextBox1.Text == "WHAT IS THE SYMBOL OF VICTORY ?")
                {


                    button2.Text = "";
                    button3.Text = "";

                    checkBox1.Enabled = false;


                }
                else if (richTextBox1.Text == "WHO TOUCH TURNED ALL TO GOLD ?")
                {


                    button1.Text = "";
                    button2.Text = "";

                    checkBox1.Enabled = false;

                }
                else
                {
                }
            }

        }

        private void checkBox2_CheckedChanged_1(object sender, EventArgs e)
        {
           
            if (checkBox2.Checked == true)
            {
                if (richTextBox1.Text == "IN WHICH DIRECTION DOES A MUSLIM PRAY ?")
                {

                    MessageBox.Show("A)- 60%"+"\nB)-25%"+"\nC)- 10%"+"\nD)- 5%","AUDIENCE POLL :",MessageBoxButtons.OK);
                    checkBox2.Enabled = false;
                      
                 
                  
                }
                else if (richTextBox1.Text == "WHICH IS THE COMMON EUROPIAN CURRENCY ?")
                {
                    MessageBox.Show("A)= 43%" + "\nB) = 42%" + "\nC) = 10%" + "\nD) = 5%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                  
                    checkBox2.Enabled = false;


                }

                else if (richTextBox1.Text == "WHO LOST HIS TEETH WHILE WRITING MAHABHARAT ?")
                {
                    MessageBox.Show("A)= 27%" + "\nB) = 23%" + "\nC) = 24%" + "\nD) = 26%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                  

                  
                    checkBox2.Enabled = false;
                }
                else if (richTextBox1.Text == "IN THE RHYME WHERE DID HUMPTY DUMPTY SIT ?")
                {
                    MessageBox.Show("A)= 34%" + "\nB) = 35%" + "\nC) = 25%" + "\nD) = 6%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                  
                  
                    checkBox2.Enabled = false;


                }
                else if (richTextBox1.Text == "HOW MANY OF ENGLISH MUNARCHS ARE NAMED ELIZABETH ?")
                {

                    MessageBox.Show("A)= 23%" + "\nB) = 25%" + "\nC) = 29%" + "\nD) = 23%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                 
                    checkBox2.Enabled = false;


                }
                else if (richTextBox1.Text == "WHICH PAKISTHANI LEADER SIGNED SIMLA AGREEMENT ?")
                {
                    MessageBox.Show("A)= 24%" + "\nB) = 25%" + "\nC) = 25%" + "\nD) = 26%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                  
                 
                    checkBox2.Enabled = false;
                }

               else if (richTextBox1.Text == "WHO ADOPTED UNIVERSAL DECLARATION OF HUMAN RIGHTS ?")
                {
                    MessageBox.Show("A)= 30%" + "\nB) = 35%" + "\nC) = 20%" + "\nD) = 25%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;


                }
                else if (richTextBox1.Text == "WHICH OF THESE ANIMALS LAUGHS ?")
                {
                    MessageBox.Show("A)= 14%" + "\nB) = 20%" + "\nC) = 40%" + "\nD) = 26%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;


                }
                else if (richTextBox1.Text == "HOW DO YOU SAY GOOD BYE IN JAPANESE ?")
                {
                    MessageBox.Show("A)= 31%" + "\nB) = 20%" + "\nC) = 24%" + "\nD) = 25%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;


                }
              else  if (richTextBox1.Text == "WHEN DID SOVIENT UNION BREAK DOWN ?")
                {
                    MessageBox.Show("A)= 16%" + "\nB) = 16%" + "\nC) = 65%" + "\nD) = 3%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;

                  

                }
                else if (richTextBox1.Text == "WHO PATRONISED KALIDAS ?")
                {
                    MessageBox.Show("A)= 30%" + "\nB) = 11%" + "\nC) = 28%" + "\nD) = 31%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;

                 

                }
                else if (richTextBox1.Text == "WHO WAS ALSO A BRITISH CITIZEN ?")
                {
                    MessageBox.Show("A)= 26%" + "\nB) = 25%" + "\nC) = 24%" + "\nD) = 25%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;

                 


                }
                else if (richTextBox1.Text == "WHICH OF THESE IS A SYMBOL OF PEACE ?")
            {
                  MessageBox.Show("A)= 15%" + "\nB) = 10%" + "\nC) = 20%" + "\nD) = 55%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;

              

            }

            else if (richTextBox1.Text == "WHAT IS THE SYMBOL OF VICTORY ?")
            {
                  MessageBox.Show("A)= 15%" + "\nB) = 25%" + "\nC) = 15%" + "\nD) = 45%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                    checkBox2.Enabled = false;

               

            }
            else if (richTextBox1.Text == "WHO TOUCH TURNED ALL TO GOLD ?")
            {
                MessageBox.Show("A)= 10%" + "\nB) = 31%" + "\nC) = 30%" + "\nD) = 29%", "AUDIENCE POLL:", MessageBoxButtons.OK);
                checkBox2.Enabled = false;

            }
                else

                {

                }
            }
        }

 

 

Up Next
    Ebook Download
    View all
    Learn
    View all