What should you do to start by creating a new Windows Control Library project?

You are creating a data-entry application that uses many TextBox controls. Each control requires special validation logic. You need to ensure an extended version of the standard Windows Forms TextBox control that has the validation logic built into the control. You start by creating a new Windows Control Library project. What should you do?

You are creating a data-entry application that uses many TextBox controls. Each control requires special validation logic. You need to ensure an extended version of the standard Windows Forms TextBox control that has the validation logic built into the control. You start by creating a new Windows Control Library project. What should you do?

A.
Add a TextBox control to the control design surface, and add properties and methods as required.

B.
In the code, change the class to derive from the UserControl class, and add properties and methods as required.

C.
In the code, change the class to derive from the TextBox class, and add properties and methods as required.

D.
In the code, change the class to derive from the Control base class, and add properties and methods as required.



Leave a Reply 0

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