Which code segment should you use to write code to stop the controll from being displayed?

You are busy developing a composite control. You do not want the controls to be displayed when certain conditions are met.

Which code segment should you use to write code to stop the controll from being displayed?

You are busy developing a composite control. You do not want the controls to be displayed when certain conditions are met.

Which code segment should you use to write code to stop the controll from being displayed?

A.
this.BackColor = Color, Transparent;

B.
this.Visible = false;

C.
this.SetStyle[ControlStyles.SupportTranparentBackColor, true];

D.
this.SetStyle[ControlStyles.Opaque, true];

Explanation:
The Visible control should be on false. This setting will not allow displaying.

Incorrect Answers:
A: This will prevent the background from being displayed; however it cannot hide the entire control.
C: This will prevent the background from being displayed; however it cannot hide the entire control.
D: This will prevent the background from being displayed; however it cannot hide the entire control.



Leave a Reply 0

Your email address will not be published. Required fields are marked *