Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image

Design 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. Please note that the problem could also be solved by using a single timer as well. Set the properties of the form and all controls similar to as shown in figure below. You should use your own image files that contain car images, or some other images, as well as your own form design. Please note that it is required to follow naming conventions when naming your controls, and to avoid empty event handlers as well. A timer control should be used to gradually move a corresponding image across the window form, i.e. the timer is randomly changing the Location property value of the picture box. A timer will also print a message which car/object (1 or 2) wins the race. Please note that two labels contain "CAR 1=> and CAR 2=>" text respectively. Please note also that timers should use the random numbers generator in this case. 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 images to the initial position/location. Exit will use the MessageBox.Show() method to display the message "Program will

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_2

Step: 3

blur-text-image_3

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

Programming With Microsoft Visual Basic 2017

Authors: Diane Zak

8th Edition

1337102121, 9781337517058, 978-1337102124

More Books

Students also viewed these Algorithms questions

Question

23. What are the effects of cannabinoids on neuronspg105

Answered: 1 week ago

Question

26. Name at least two ways a gene could influence alcoholism.

Answered: 1 week ago