|
Project #2 - Twinkly - 15% due by midnight, Sun. Jan. 22 Please read the class
programming standards and the
GUI testlist. Version 1.0, last updated 08/07/2006 |
GRADING CRITERION:
Using Microsoft Visual C#, write a screen joke that scatters buttons which change color and flash on and off randomly all over the screen, something like this:

RULES:
|
You can
either use delegates, or you can access the properties of each button you created
with code by upcasting in the form's control array. For example,
if you know that index 30 in the control array is a custom button
(of, say, type CustomButton), you can do something like: CustomButton cb = new CustomButton(); cb = (CustomButton) Form.Controls[30]; cb.Top = 200; cb.Left = 200; // etc |
| EXTRA CREDIT OPPORTUNITY: My prototype is a processor hog, using 25-50% of CPU time on a 2.1 GHz Dell. If you can figure out a way to do all the above while being less hoggy, the grader may consider extra credit up to 10% of this project (that's worth 1.5 points on your course average--if you can get it). This extra credit will be at the discretion of the grader, who gets to determine whether any performance advantage over my prototype is significant. A good way to determine processor usage is to use the free utility Process Explorer--sort it's output by CPU usage. Good luck! |
GOALS:
TIPS and TECHNIQUES:
| IMPORTANT: Programming Standards |
GETTING HELP:
If you need help, try (in preferred order):
TURN-IN:
The turn-in procedure for programming assignments is as follows:
Visitors: