|
||||||
| Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I have a little box called: Box1. If you press the "START" Button the backcolor of the box will change in a random color of: Red, Blue, Yellow Or Green. But how can I do that? So it will random pick a color.
|
| Sponsored Links |
|
|
|
|||||
|
You mean every box has the same colour, or every box has its own randomised colour?
And also, consider that some boxes may get the same colour as each other. Does this matter to you, as if it does, we will need lots of extra code to make sure! |
|
|||
|
Erm another thing I need to know. I'm making the game: Mastermind with vb, but I got a few panels with colors and when you click it then the colors in the left panel will get that color you clicked. But I know how to set the colors, but when one of those boxes already has a color and you click it then the next box will get that color you clicked etc.
Few notes to screen: - Top Panel is the random colors, the code you need to guess. - Under that top panel, are the boxes that will get the color if you press a color at the right panel, to gues the code. ![]() Last edited by wazofski; 04-22-2008 at 02:30 PM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|