What's New in Windows Forms and Controls
Windows Forms is the new object-oriented framework that implements the .NET Framework. Windows Forms, in combination with the Windows Forms controls, provide a robust architecture for Windows application development in Visual Basic, C#, and Managed Extensions for C++.
Visual Basic Note If you are familiar with forms in Visual Basic 6.0, see Forms Task Changes in Visual Basic .NET for an introduction to the new concepts.
What's New in Visual Studio .NET 2003
A number of additions have been made to Windows Forms in this release.
- FolderBrowserDialog Component
- The Windows Forms FolderBrowserDialog component is a modal dialog box that is used for creating, browsing, and selecting folders. For details, see FolderBrowserDialog Component (Windows Forms).
- Security in Windows Forms
- A fundamental aspect of programming is making sure your applications are secure. In Windows Forms, a great deal of work has been done to make this as easy as possible for developers. Nonetheless, there are important issues to be aware of. For details, see Windows Forms Security.
- Nonrectangular Windows Forms
- It is easy to customize the shape of Windows Forms. All that is required for nonrectangular forms is an image file and a few property settings. For details, see Creating Nonrectangular Windows Forms.
- Windows Forms Designer for Managed Extensions for C++
- Visual C++ introduces a rapid application development solution for creating your Windows Forms applications in Managed Extensions for C++. For details, see Managed Extensions for C++ Windows Applications.
- Smart Device Programmability
- Visual Basic .NET now allows you to develop rich applications for resource-constrained devices. You can use the tools provided by Visual Studio .NET and the .NET Compact Framework, a subset of the .NET Framework, to create, build, and debug applications that run on smart devices. For details, see Smart Device Projects.
While almost the entire Visual Basic language is supported for device development, certain Visual Basic .NET features were changed or dropped to accommodate for the inherent differences in device applications. For more information, see Developing Device vs. Desktop Applications.
What's New in Visual Studio .NET 2002
The following are all a part of client application development with Windows Forms.
- Windows Forms
- Windows Forms is the new platform for Microsoft Windows application development, based on the .NET Framework. This framework provides a basis for creating powerful applications. For details, see System.Windows.Forms Namespace. This framework provides a clear, object-oriented, extensible set of classes that enable you to develop rich Windows applications. For details, see Windows Forms.
- Windows Forms as the Presentation Layer of a Three-Tier Application
- Windows Forms can act as a user-interface layer within a three-tier application. Using HTTP calls to a server that is connected to a database, Windows Forms are capable of acting as the front end to a powerful, data-enabled architecture that leverages the rich user interface of a client application with the advanced processing of an application server. For details, see Walkthrough: Creating a Distributed Application.
- Creating a Client Application
- With Windows Forms, you are able to create a rich client application using C# or Visual Basic. This application can access a wide variety of data sources and provide data-display and data-editing facilities using Windows Forms controls. For details, see Walkthrough: Creating a Simple Windows Form and Walkthrough: Simple Data Access in a Windows Form.
- Windows Forms and Web Forms
- When designing applications that involve a user interface, you have two choices: Windows Forms and Web Forms. Both have full design-time support within the development environment and can provide a rich user interface and advanced application functionality to solve business problems. For a guide to deciding which technology is appropriate for a given application, see Windows Forms and Web Forms Recommendations.
- Visual Basic Code Behind a Windows Form
- When you select a Windows Application from the New Project dialog box, a solution is created with a Visual Basic project in it. This project contains references and one class, which is called Form1.vb. For details on the code in this class, see Anatomy of the Visual Basic Code Behind Windows Forms.
- Windows Forms Security Model
- Windows Forms security is based on the security policies established within the .NET Framework. The System.Security namespace provides the underlying structure of the .NET Framework security system, including base classes for permissions. Windows Forms Security addresses some of the concerns developers need to keep in mind as they create Windows applications.
- Tag and Name Properties
- The Tag and Name properties have been added to the Control Class. The Tag property is a repository within memory to store data about the control. The Name property contains the name of the control. The Name property can be used at run time to evaluate the object by name rather than type and programmatic name. For more information about the Tag property, see Control.Tag Property. For more information about the Name property, see Control.Name Property.