Property Support Hình ảnh các nhà phát triển Studio cửa sổ Properties cho các cấp, nhưng nó thực sự là một công cụ đáng chú ý khá. Khi bạn nhấp vào một kiểm soát trên một biểu mẫu, cửa sổ hiển thị các thuộc tính của kiểm soát và cho phép bạn chỉnh sửa theo những cách thích hợp cho các loại dữ liệu sở hữu khác nhau. Nó cho phép bạn nhập văn bản đối với tài sản là chuỗi giá trị đơn giản như số, nó cho phép bạn chọn các tập tin và màu sắc từ các. | Property Support Visual Studio developers take the Properties window for granted but it s actually a pretty remarkable tool. When you click a control on a form the window displays the control s properties and lets you edit them in ways that are appropriate for the different property data types. It lets you enter text for properties that are strings or simple values such as numbers it lets you select files and colors from dialogs and it lets you pick choices from a drop-down list for enumerated values. If a property is a collection of objects you can click an ellipsis to the right of the property to open a collection editor where you can add and remove objects and edit their properties. When you build a custom control you get all of this functionality for free. In many cases this default behavior is more than enough to let developers use your controls. In fact if you are developing controls for in-house use I would recommend that you try to live with the capabilities provided by the Properties window for you. Additional features such as custom property editors make developing with controls easier but they are fairly tricky to implement. Unless you will be spending a lot of time working with the properties it may not be worth the additional effort of writing customized tools. In contrast if you are building controls that will be used by developers outside of your project it may be worthwhile providing some of these extra capabilities. You may also need to build some of these tools if your controls properties will be directly accessible to end users. For example the PropertyGrid control lets users view and modify object properties at run-time. If you use that control you may need to streamline your properties so that they are easier for the users to understand and manage. Unfortunately controls and code in general often live far longer than was originally intended. The control that you plan to use only once may be adopted by other projects and you may end up .