多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.The control will have the same properties as a TextBox control.You need to ensure that the control has a transparent background when it is painted on form.You want to achieve this goal by using the minimum amount of development effort.What should you do?()

  • A、Create a new class that is derived from the Control class.Call the SetStyle method in the constructor.
  • B、Create a new class that is derived from theTextBox control class.Override the OnPaint method in the constructor.
  • C、Create a new class that is derived from the Control class.Set the BackColor property of the control to Transparent.Call the SetStyle method in the constructor.
  • D、Create a new class that is derived from theTextBox control class.Set the BackColor property of the control to Transparent in the constructor.Call the SetStyle method in the constructor.
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题