Interviewer And Interviewee Guide

MCSD.NET - 70-316 Exam Interview Question:

Suppose You use Visual Studio .NET to create a control that will be used on several forms in your
application.
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 the
control to show as much of the underlying form as possible. You want to ensure that only the
stock 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 two
code 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);

Submitted by: Administrator
A. this.BackColor = Color.Transparent;
E.this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
Submitted by: Administrator

Read Online MCSD.NET - 70-316 Exam Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.