Sams Teach Yourself .Net in 21 Days
- Table of Contents
- Copyright
- About the Author
- About the Technical Editor
- Acknowledgments
- We Want to Hear from You
- Introduction
- Week 1: At a Glance
- Day 1. Introduction to the Microsoft .NET Framework
- Day 2. Introduction to Visual Studio .NET
- Day 3. Writing Windows Forms Applications
- Day 4. Deploying Windows Forms Applications
- Day 5. Writing ASP.NET Applications
- Day 6. Deploying ASP.NET Applications
- Day 7. Exceptions, Debugging, and Tracing
- Week 1. In Review
- Week 2: At a Glance
- Day 8. Core Language Concepts in Visual Basic .NET and C#
- Day 9. Using Namespaces in .NET
- Day 10. Accessing Data with ADO.NET
- Day 11. Understanding Visual Database Tools
- Day 12. Accessing XML in .NET
- Day 13. XML Web Services in .NET
- Day 14. Components and .NET
- Week 2. In Review
- Week 3: At a Glance
- Day 15. Writing International Applications
- Day 16. Using Macros in Visual Studio .NET
- Day 17. Automating Visual Studio .NET
- Day 18. Using Crystal Reports
- Day 19. Understanding Microsoft Application Center Test
- Day 20. Using Visual SourceSafe
- Day 21. Object Role Modeling with Visio
- Week 3. In Review
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
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.
Day 4. Deploying Windows Forms Applications | Next Section

Account Sign In
View your cart