Apply Your Knowledge
Exercises
4.1. Creating the Odometer User Control
In this exercise, you'll learn to create a new user control from an existing user control. Your objective is to design an odometer user control that shows a three-digit odometer where each digit is displayed on a Label control. The odometer exposes a property named ScrollInterval that controls how frequently the odometer values change.
Estimated time: 20 minutes
1. | Launch Visual Studio .NET. Select File, New, Blank Solution, and name the new file 316C04Exercises. |
2. | Add to the solution a new project based on the Windows Control Library template. Name the project Exercise4_1. The Component Designer shows the control as a captionless, borderless form. |
3. | Drag and drop three ... |
Get MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.