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
Danny
NA
5
6k
How to randomly assign a bunch of buttons a number and color
Feb 4 2013 2:07 PM
So I have this grid containing 5x5 buttons where I want to randomly generate one number(1-5) to each button, and randomly place one (of 5) color to each button.
Ex
[RED 1][BLUE 5][GREEN 2][RED 4][YELLOW 3]
[GREEN 1][YELLOW 5][Orange 3] and so on.....
Ok, so the question is, in which steps should I think? And are there some good methods to use in this case? I'm starting from scratch....
I appreciate any help!
----
EDIT
So there will only exist five buttons of one color, and to each color there are numbered 1-5.
Reply
Answers (
0
)
How do I make all the controls adapt to the screen? WPF
WPF Treegrid control