Exercises
To expand on the form events that occur when opening and closing forms, add code to the child1 and child2 forms to display a messages in each of the key events that occur when a form is created and when a form is destroyed.
Using the Application class, create a new form that contains a ListBox control and add the following properties to it:
CommonAppDataPath
CommonAppDataRegistry
CompanyName
ExecutablePath
ProductName
ProductVersion
StartupPath
UserAppDataPath
UserAppDataRegistry
Hint:
After you add the ListBox control to the form, you need to add code in the Form_Load event using the following syntax:
ListBox1.Items.Add(Application.CommonAppDataPath)
ListBox1.Items.Add(Application.StartupPath)
Using the Splitter control, the Panel control, and the knowledge you have gained about docking today, create an Explorer-style application.
Hint:
The Splitter control has a Dock property that dictates whether it should be a horizontal or vertical splitter.
Experiment with the TabControl, DateTimePicker, and ErrorProvider controls. Add the controls to a form, and press Ctrl+F1 to view the help files on these controls.
• 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.