Help with School Assignement

  • Thread starter Thread starter JonnyF2000
  • Start date Start date
J

JonnyF2000

Guest
Hello,
we recently got a project assigned to us where we need to make a slot machine. I got all of the code right and now i just want to make it look nice, what i want to know is how are these to things possible.

1). How can i make the background color of a label change when i button is clicked. i know its labelx.backcolor = ?????, the colors i want to use are under web in the regular color menu.

2.) How can i make it so that i have a form in front of my other form, and when i enter a password and the number of chips to start with into the first form, it either closes or gets sent to back so my actual game is still in front?

Any help on these 2 problems would be very much appreciated, and if you could please help me asap. Thanks in advance, Jonny
 
2. Try the ShowDialog() method of the secondary form, this will suspend code execution in the first form until the second form is closed or validated.
 
hello,
first off i just want to say thanks so much for taking the time to answer my basic questions, and i have a couple more if you guys wouldn't mind taking the time to answer them as well.

1.) Is there anyway to make a wait command, something like i want to click a button, have it do something, wait 5 seconds, and do something else.

2.) Is there anyway to open a finished project without first opening visual basic.net, my guess is that i have to save it as a .exe insteed of Vb, but i have no idea.

Thanks again, Jonny
 
1. You can suspend the current thread, look at the methods of the Thread class.

2. Look in the bin folder under where your project files are, that is where the binaries are created.
 
Back
Top