Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# : a Windows Forms Application which contains one form and the following controls: two picture boxes, two labels, a group box, three buttons, and

image text in transcribed

C# : a Windows Forms Application which contains one form and the following controls: two picture boxes, two labels, a group box, three buttons, and two timers. Set the properties of the form and all controls as shown in figure below. You should use your own image files that contain car images. Please note that it is required to follow naming conventions when naming your controls, to avoid empty event handlers, and to change the forms Text property.

A timer control should be used to gradually move a corresponding car image across the window form, i.e. the timer is changing the Location property value of the picture box. A timer will also print a message which car (1 or 2) wins the race. Please note also that two labels contain CAR 1=> and CAR 2=> text respectively.

The group box contains three buttons which Click events should be handled as follows:

- Start Race will enable (i.e., start) both timers.

- Restart Race will move both cars images to the initial position/location.

- Exit will use the MessageBox.Show() method to display the message Program will terminate first, and then terminate the program.

CARS RACE CAR 1=> CAR 2=> Race Control Start Race Restart Race Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

i need correct answrrs 5 1 2 .

Answered: 1 week ago