PrepAway - Latest Free Exam Questions & Answers

Which of the following code segments should be used?

The manager of Domain.com wants to have a borderless form with the background shown in the exhibit.
When the form is view, the manager named Rory Allen does not want the maroon area to be visible.
He only wants the blue to be visible when the form is displayed. Which of the following code segments should be used?

PrepAway - Latest Free Exam Questions & Answers

A.
this.TransparencyKey = Color.Maroon;

B.
this.BackColor = Color.Maroon;

C.
this.TransparencyKey = Color.CornflowerBlue

D.
this.BackColor = Color.Transparent;

Explanation:
The TransparencyKey = Color.Maroon specify the color that the transparent represents the area on the form. With this setting the blue will respond to the mouse.

Incorrect Answers:
B: You should not use the BackColor = Color.Maroon. This will determine the background color of the form.
C: You should not use this code segment. The manager does not wan the blue area to be transparent.
D: You should not use the BackColor = Color.Transparent. The manager does not want the background to be transparent.


Leave a Reply