Q&A
| Q1: | I want to be able to use control arrays to handle multiple events. Where did that functionality go? |
A1: | Control arrays do not exist in Visual Basic .NET. Each control you add has its own event that you can write code for. You can, however, handle multiple events with a single method. You did this earlier with the genericClick event in the forms exercises. You can also use the Handles keyword to indicate what events a method should consume, as the following code demonstrates:
|
| Q2: | Can I use ActiveX controls from Visual Basic 6 in my .NET Windows Forms applications? |
A2: | Yes, you can. Although the interop between COM and .NET has some overhead, the functionality is built in. To add an ActiveX control to the Toolbox, you can right-click on the Toolbox and select Customize. From this dialog, you can select the ActiveX controls to add to your application. Most third-party vendors have .NET certified controls. For some of the more popular controls, visit http://www.infragistics.com and http://www.componentone.com. |
| Q3: | Windows Forms are awesome. Where can I get more details? The QuickStart tutorials only take me so far. |
A3: | Microsoft has a Web site specifically for Windows Forms. Check out http://www.windowsforms.net to get tons of great information about developing forms applications. |
• Table of Contents
• Index
Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days
By
Jason Beres
Publisher
: Sams Publishing
Pub Date
: January 14, 2003
ISBN
: 0-672-32421-0
Pages
: 696
Sams Teach Yourself Visual Studio .NET in 21 Days will help developers that are new to application development and experienced developers understand how to use the .NET Framework and Visual Studio .NET to rapidly develop any type of computer application. The Visual Studio .NET development environment is the most comprehensive developer tool ever created, putting that together with the .NET Frameworks' Class Libraries, the developer has everything he or she needs to get up-to-speed on Microsoft's latest revolution in application development. This book will guide the developer through using the VS .NET IDE, the Visual Basic .NET and C# language, and the supporting tools available from Microsoft to create Windows and Web-based applications. The market is full of books that pretty much say the same thing, which is already available in the help files, the author of this book has written and deployed over a dozen successful applications using Visual Studio .NET and the .NET Framework. All of his expertise and experience is used to give you the most comprehensive title on using Visual Studio .NET.