Case Scenario 1 Collecting and Displaying User Data

The best way to approach this problem is to create a composite control consisting of TextBox controls to receive the user input. This control can be hosted in a dialog box to receive user input and in the general application to display user input. The ReadOnly property of the TextBox controls can be wrapped in new properties in the composite control to allow developers to determine when the control is read-only and when it is read-write. Finally, by creating a composite control, you will be able to reuse it in subsequent applications, thereby minimizing developer hours.

0 0

Post a comment