In this article, we developed the DirectoryTree control and showed how to add the basic design-time support by adding a toolbox icon, checking the control run mode, and applying attributes. In the next article, we'll tackle designers and UITypeEditors to add a richer level of design-time interface. These tools provide another way for developers to configure their custom controls at design-time.
If you want to continue to work with the DirectoryTree code, you could add a number of enhancements. For example, you might provide a SelectedDirectory property that returns the full path of the currently selected node, and allows you to change it programmatically. You could also add a custom ListView control to provide a synchronized file list, simply by responding the DirectorySelected event.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |