The following sections describe the new and enhanced features of the SP1 version of Visual Basic 2008.
The Microsoft Visual Basic Power Packs 3.0 controls and components that were previously available for download are now included in Visual Studio 2008 Service Pack 1. Power Packs can be used in both Visual Basic and Visual C# Windows Forms Application projects.
Included in the Power Packs are a new DataRepeater control in addition to updated versions of the previously released LineShape and Shape controls, the PrintForm component, and the Printer Compatibility Library.
DataRepeater Control
Line and Shape Controls
The LineShape and Shape controls are a set of three graphical controls that enable you to draw lines, ovals, and rectangles on forms and containers at design time. These controls make it easier to enhance the look of your user interface. LineShape and Shape controls encapsulate many of the graphics methods that are contained in the System.Drawing namespace. This enables you to draw lines and shapes in a single step without having to create graphics objects, pens, and brushes. You can create complex graphics effects such as gradient fills by just setting some properties. These controls also provide events such as click and double-click to enable you to respond to and interact with end users.
For more information, see Introduction to the Line and Shape Controls (Visual Studio).
PrintForm Component
The PrintForm component is designed to easily print a Windows Form as you could in Visual Basic 6.0. By using the PrintForm component, you can once again lay out a Windows Form exactly how you want it and enable users to print the form as a quick report.For more information, see PrintForm Component (Visual Basic).
Printer Compatibility Library
The Printer Compatibility Library enables projects that use the Visual Basic 6.0 Printer object and Printers collection to be upgraded without requiring you to rewrite the printing logic. Just add a reference to the library, declare a Printer, and make some minor syntax changes, and the project will be able to print by using the Printers collection and Printer object as it did in Visual Basic 6.0. This version incorporates a new Write method into the Printer object. The new method enables you to print text without using a forced carriage return, like the semicolon syntax used by the Print method in Visual Basic 6.0.
For more information, see Printer Compatibility Library.
Distributing Power Packs
Also included is a bootstrapping package that enables you to easily redistribute the Visual Basic Power Packs with an application. This enables you to include the Power Packs in a ClickOnce Project or Setup Project by just clicking a check box.
For more information, see Deploying Applications That Reference Power Packs Controls.
The XML to Schema Wizard, which was previously available as a PowerToy download, is now included in Visual Studio 2008 SP1. You can use the XML to Schema Wizard to create an XML schema set that is inferred from one or more XML documents and include it your project. For more information, see XML to Schema Wizard.