Team LiB
Previous Section Next Section

Summary

This chapter dealt with speeding up the user experience when it concerns the GUI. Many controls (mainly the TreeView) have some limitations when it comes to large amounts of data. You learned how to overcome several limitations of the TreeView control by using virtual nodes and getting data only when you are ready to show it. You also learned how to use multithreading with Windows Forms controls in the last part of the chapter.

Multithreading allows you to fill in a control with copious amounts of data while still allowing the user to navigate the screen. You saw that it was possible to fill in a TreeView control and draw on the screen using a mouse at the same time. Although the program's user may not appreciate the finer points of multithreading, the user will appreciate the fact that he or she does not need to go have lunch while trying to display data.

I demonstrated how to improve performance with just the TreeView control. I hope you don't think that this is the only control that you can improve. You can apply the techniques I covered in this chapter, especially multithreading, to most of the controls that come with .NET.

This is the last of the "how-to" chapters. The next chapter takes you through a complete program using many of the lessons from the preceding chapters. It pulls all the information together for you.


Team LiB
Previous Section Next Section