Click here to Skip to main content
15,844,673 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# dice program (combobox selection) Pin
PIEBALDconsult10-May-12 16:48
mvePIEBALDconsult10-May-12 16:48 
GeneralRe: C# dice program (combobox selection) Pin
Angel_7811-May-12 16:57
Angel_7811-May-12 16:57 
GeneralRe: C# dice program (combobox selection) Pin
PIEBALDconsult12-May-12 7:23
mvePIEBALDconsult12-May-12 7:23 
GeneralRe: C# dice program (combobox selection) Pin
Angel_7812-May-12 13:12
Angel_7812-May-12 13:12 
GeneralRe: C# dice program (combobox selection) Pin
PIEBALDconsult13-May-12 6:31
mvePIEBALDconsult13-May-12 6:31 
GeneralRe: C# dice program (combobox selection) Pin
Angel_7813-May-12 11:09
Angel_7813-May-12 11:09 
GeneralRe: C# dice program (combobox selection) Pin
PIEBALDconsult13-May-12 17:34
mvePIEBALDconsult13-May-12 17:34 
GeneralRe: C# dice program (combobox selection) Pin
Angel_7814-May-12 11:36
Angel_7814-May-12 11:36 
Ok so I changed my numberOfTimes textBox1 to a numericUpDown1 and I sort of got it to work but not the way I want it to.
private void button1_Click(object sender, EventArgs e)
{
    var numberOfSides = (int)comboBox1.SelectedValue;

    var numberOfTimes = (int)numericUpDown1.Value;

    int result = RollDice.RandomDice(numberOfSides, numberOfTimes);

    richTextBox1.Text = Convert.ToString(result);
}

All I get is the total random number displayed to my richTextBox1, I want it to display each roll separately.

What am I missing here?

modified 14-May-12 17:44pm.

GeneralRe: C# dice program (combobox selection) Pin
PIEBALDconsult14-May-12 15:11
mvePIEBALDconsult14-May-12 15:11 
Questionerror on exiting form wit datagridview containing comboboxcell Pin
markoVVVV8-May-12 2:14
markoVVVV8-May-12 2:14 
AnswerRe: error on exiting form wit datagridview containing comboboxcell Pin
Eddy Vluggen8-May-12 6:03
professionalEddy Vluggen8-May-12 6:03 
AnswerRe: error on exiting form wit datagridview containing comboboxcell Pin
Apocalypse Now8-May-12 15:58
Apocalypse Now8-May-12 15:58 
QuestionReg: Loading text file(size 100 MB) in Richtextbox Pin
Member 23893798-May-12 2:00
Member 23893798-May-12 2:00 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Luc Pattyn8-May-12 3:10
sitebuilderLuc Pattyn8-May-12 3:10 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Pete O'Hanlon8-May-12 3:26
subeditorPete O'Hanlon8-May-12 3:26 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Dave Kreskowiak8-May-12 4:21
mveDave Kreskowiak8-May-12 4:21 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Alan N8-May-12 5:31
Alan N8-May-12 5:31 
QuestionProblem with dictionary Pin
Mark Vloerjans8-May-12 1:52
Mark Vloerjans8-May-12 1:52 
AnswerRe: Problem with dictionary Pin
Luc Pattyn8-May-12 3:16
sitebuilderLuc Pattyn8-May-12 3:16 
GeneralRe: Problem with dictionary Pin
Mark Vloerjans23-May-12 2:24
Mark Vloerjans23-May-12 2:24 
AnswerRe: Problem with dictionary Pin
Luc Pattyn23-May-12 3:17
sitebuilderLuc Pattyn23-May-12 3:17 
QuestionRegistry.OpenSubKey Returns Null Pin
Kevin Marois7-May-12 12:30
professionalKevin Marois7-May-12 12:30 
AnswerRe: Registry.OpenSubKey Returns Null Pin
JOAT-MON7-May-12 16:00
JOAT-MON7-May-12 16:00 
AnswerRe: Registry.OpenSubKey Returns Null Pin
Richard MacCutchan7-May-12 22:56
mveRichard MacCutchan7-May-12 22:56 
GeneralRe: Registry.OpenSubKey Returns Null Pin
Kevin Marois8-May-12 8:29
professionalKevin Marois8-May-12 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.