可学答题网 > 问答 > MCPD(70-505)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are creating a&#


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?()

  • ACreate a new class that is derived from the Control class.Call the SetStyle method in the constructor.
  • BCreate a new class that is derived from theTextBox control class.Override the OnPaint method in the constructor.
  • CCreate 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.
  • DCreate 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.
参考答案
参考解析:
分类:MCPD(70-505)题库