|
-
May 1st, 2014, 03:50 AM
#1
Thread Starter
Junior Member
Beginner Simple Coding questions. Help please?
Hey Vb-Forums. I have a few questions on how to write the code for a few operations i'd like to do.
1. For the program i'd like to be able to use one button that changes the BackColor of the program.
Example
Code:
BackColour = Colour.Aqua
In a buttons code. How do I make it so the second time the button is pressed it change the colour to another listed one? So pressing it over and over again will go through a cycle of colours?
2. Undo button, The program requires people to press buttons to add scores to a basketball score. If they make a mistake like click the wrong score as in, give a team three points instead of two, what would type in my "Undo" button code to undo the last action?
3. How do I change the properties of a MsgBox so instead of a thingy that said "Great shot!" with an "Okay" button it has no okay button and just dissapears automatically after about two seconds?
4. There are two text boxes that change according to what buttons are pressed. You press "Free throw Blue" it will give one point to the Blue team (Textbox1) and the same idea for the other team (Textbox2). What code would I type in to make MsgBoxes that say "Blue team in the lead!" when one team is ahead? Aswell as when the scores are even it displays "Even game" or something like that. How do I write these types of things?
You don't have to answer all the questions, It would just be lovely. It's an assessment task that i've been working on for awhile and I need some help with it.
Thanks very much in advance
Last edited by Dr Quack; May 1st, 2014 at 05:26 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|