Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
GeneralRe: Label update Pin
imnotso#30-Jan-07 2:12
imnotso#30-Jan-07 2:12 
GeneralRe: Label update Pin
Martin#30-Jan-07 2:20
Martin#30-Jan-07 2:20 
GeneralRe: Label update Pin
imnotso#30-Jan-07 2:42
imnotso#30-Jan-07 2:42 
GeneralRe: Label update Pin
Martin#30-Jan-07 2:55
Martin#30-Jan-07 2:55 
GeneralRe: Label update Pin
imnotso#30-Jan-07 4:00
imnotso#30-Jan-07 4:00 
GeneralRe: Label update Pin
Martin#30-Jan-07 4:05
Martin#30-Jan-07 4:05 
GeneralRe: Label update [modified] Pin
Luc Pattyn30-Jan-07 2:42
sitebuilderLuc Pattyn30-Jan-07 2:42 
AnswerRe: Label update Pin
Jasmine250130-Jan-07 5:53
Jasmine250130-Jan-07 5:53 
The way this is usually done is to create an array of 37 ints... one for each number 0 to 36. Then in each cell of the array, you store the number of times that spot has been hit.

There are many ways to display the reports after each spin. I would say, just keep your 37 controls in an array, and match up the values. So, after a roll, you would have something like this:

<br />
//spot is the number we rolled...<br />
hits[spot]++; //hits is the array of integers<br />
labels[spot].Text = rolls[spot].ToString(); //labels is an array of Labels<br />


There's some much more elegant solutions to this, but this is pretty straightforward.

"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

GeneralRe: Label update [modified] Pin
imnotso#30-Jan-07 6:13
imnotso#30-Jan-07 6:13 
GeneralRe: Label update Pin
Dan Neely30-Jan-07 6:45
Dan Neely30-Jan-07 6:45 
GeneralRe: Label update Pin
Jasmine250130-Jan-07 18:34
Jasmine250130-Jan-07 18:34 
GeneralRe: Label update Pin
Jasmine250130-Jan-07 18:39
Jasmine250130-Jan-07 18:39 
GeneralRe: Label update Pin
imnotso#30-Jan-07 23:17
imnotso#30-Jan-07 23:17 
Questionconvert c# to vb.net Pin
Doritkatz30-Jan-07 1:00
Doritkatz30-Jan-07 1:00 
AnswerRe: convert c# to vb.net Pin
andre_swnpl30-Jan-07 1:19
andre_swnpl30-Jan-07 1:19 
GeneralRe: convert c# to vb.net Pin
Doritkatz30-Jan-07 1:55
Doritkatz30-Jan-07 1:55 
AnswerRe: convert c# to vb.net Pin
Pete O'Hanlon30-Jan-07 1:20
mvePete O'Hanlon30-Jan-07 1:20 
GeneralRe: convert c# to vb.net Pin
Martin#30-Jan-07 1:32
Martin#30-Jan-07 1:32 
AnswerRe: convert c# to vb.net Pin
Dave Doknjas30-Jan-07 13:42
Dave Doknjas30-Jan-07 13:42 
QuestionSending a crypt Email with Attachment Pin
olivier29-Jan-07 23:37
olivier29-Jan-07 23:37 
QuestionGet File Name Pin
ParimalaRadjaram29-Jan-07 23:26
ParimalaRadjaram29-Jan-07 23:26 
AnswerRe: Get File Name Pin
Pete O'Hanlon29-Jan-07 23:33
mvePete O'Hanlon29-Jan-07 23:33 
GeneralRe: Get File Name Pin
ParimalaRadjaram29-Jan-07 23:35
ParimalaRadjaram29-Jan-07 23:35 
GeneralRe: Get File Name Pin
bobsugar22229-Jan-07 23:39
bobsugar22229-Jan-07 23:39 
GeneralRe: Get File Name Pin
ParimalaRadjaram29-Jan-07 23:41
ParimalaRadjaram29-Jan-07 23:41 

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.