lundi 5 décembre 2016

How to Hold one or more dice in a Yatzy program

I am doing an assignment of coding a Yatzy Program in C#. All this is a new world for me. My exact problem is the following. I have 5 textboxes for the dice and 5 checkboxes to hold the dice. How do I in an easy manner Hold the dice by checking the checkboxes. I think i might be able to do the code in the textbox field as follows: private void textBox1_TextChanged(object sender, EventArgs e)

        if (checkBox1.Checked)
       // { textBox1.Text = ??? }

Or how do I do. It have to be possible to uncheck the checkbox also.:-)

Aucun commentaire:

Enregistrer un commentaire