Answers

Question and Answer:

  Home  MCSD.NET - 70-316 Exam

⟩ Suppose You use Visual Studio .NET to create a control that will be used on several forms in yourapplication.It is a custom label control that retrieves and displays your company?s current stock price.The control will be displayed on many forms that have different backgrounds. You want thecontrol to show as much of the underlying form as possible. You want to ensure that only thestock price is visible. The rectangular control itself should not be visible.You need to add code to the Load event of the control to fulfill these requirements. Which twocode segments should you use? (Each correct answer presents part of the solution. Choose two)A. this.BackColor = Color.Transparent;B. this.ForeColor = Color.Transparent;C. this.BackImage = null;D. this.SetStyle(ControlStyles.UserPaint, false);E. this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

A. this.BackColor = Color.Transparent;

E.this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

 203 views

More Questions for you: