TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Prime b
NA
810
345.9k
How could I manage number range output
Feb 22 2012 7:21 PM
Updated form http://www.4shared.com/rar/X2DWbFqF/LetItRide.html?refurl=d1url
If you go to the form I have three buttons, 1st is 5-100 range, 2nd is 25-500 range, and 3rd is 50-1000 range.
For example when I click 5-100 range the bet amount shouldn't be above or below that range.
I tried to do that:
private void lowestBetButton_Click(object sender, EventArgs e)
minBet = 5;
maxBet = 100;
if (playerbet < minBet && playerbet > maxBet)
{
MessageBox.Show("Bet must be between 5$ and 100$", "Bet range error");
}
else
{
middleBetButton.Enabled = false;
topBetButton.Enabled = false;
chipBet500Button.Visible = false;
dealButton.Enabled = true;
EnableChips(true);
}
But it doesnt work...
Reply
Answers (
9
)
having a hard time with loops
System.String[]