Web server logs - CHAPTER 19 BUILDING A BETTER WINDOW WITH

CHAPTER 19 BUILDING A BETTER WINDOW WITH SYSTEM.WINDOWS.FORMS 623 Enabling the Deprecated Controls The first bit of good news is that these (deprecated) UI elements are still completely usable under .NET 2.0. The second bit of good news is that if you still wish to program with them, you can add them back to the Toolbox by right-clicking anywhere in the Toolbox and selecting Choose Items. From the resulting dialog box, check off the items of interest (see Figure 19-9). Note At first glance, it might appear that there are redundant listings for a given control (such as the ToolBar). In reality, each listing is unique, as a control may be versioned (1.0 versus 2.0) and/or may be a member of the .NET Compact Framework. Be sure to examine the directory path to select the correct item. At this point, I am sure you are wondering why many of these old standbys have been hidden from view. The reason is that .NET 2.0 provides a set of new menu, toolbar, and status bar centric controls that are now favored. For example, rather than using the legacy MainMenu control to build a menu, you can use the MenuStrip control, which provides a number of new bells and whistles in addition to the functionality found within MainMenu. Note In this chapter, I will favor the use of this new recommend set of UI elements. If you wish to work with the legacy MainMenu, StatusBar, or ToolBar types, consult the .NET Framework 2.0 SDK documentation. Dissecting aVisual Studio 2005 Windows Forms Project Each Form in a Visual Studio 2005 Windows Application project is composed of two related C# files, which can be verified using Solution Explorer (see Figure 19-10). Figure 19-9. Adding additional controls to the Toolbox
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply