If you go in to my project
Then what I am trying to do is every time I click Raise button it should display the result from anteLabel on the raiseLabel and If I click raiseButton again it should display the result from previous two labels on the third label called raise2Label.
Loading
VulpesPosted Feb 21, 2012, 7:29 PM
Prime bPosted Feb 22, 2012, 5:17 PM
VulpesPosted Feb 22, 2012, 2:25 PM
When I said last night that I was packing up, I meant I was getting ready for bed :)
Prime bPosted Feb 22, 2012, 12:31 PM
Prime bPosted Feb 21, 2012, 7:52 PM
no the numbers don't need to add up. I am trying to make my project look like this game http://www.freepoker.com/free-let-em-ride-poker
And as you can see when you click Raise it adds the chip to the raise location, and if click it again it adds the chip to the third chip location(2nd raise);
This is what I added
int.TryParse(anteLabel.Text, out firstBet);
raiseLabel.Text = firstBet.ToString();
int.TryParse(raiseLabel.Text, out secondBet);
raise2Label.Text = secondBet.ToString();
But now I encountered a problem, after I click Raise button it displays the output on both labels, when I need to click Raise button each time I want it to display the bet on each label ( raiseLabel, raise2Label)
just like in game above. How would I do that?
Also are you leaving somewhere?
VulpesPosted Feb 21, 2012, 7:03 PM
Also what do you want to happen if the Raise button is clicked a third time etc. ?
Incidentally, there appears to be something wrong with the labels as they are not displaying - possibly they're underneath a button.