O'Reilly logo

MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET by MCSD Amit Kalani - MCAD

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required