.NET Client Stopwatch Application Sample
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
This sample illustrates the Stopwatch class and some uses for it.
For information about using the samples, see the following topics:
To build the sample using the command prompt
Open the Command Prompt window and navigate to one of the language-specific subdirectories under the StopWatch directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.
Type msbuild StopWatchCS.sln or msbuild StopWatchVB.sln, depending on your choice of programming language, from one of the language-specific subdirectories.
To build the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories under the StopWatch directory.
Double-click the StopWatchCS.sln file or StopWatchVB.sln file, depending on your choice of programming language, to open the file in Visual Studio.
On the Build menu, click Build Solution.
To run the sample
Navigate to the directory that contains the new executable file, using the command prompt or Windows Explorer.
Type StopWatchCS.exe or StopWatchVB.exe at the command line, or double-click the file in Windows Explorer.
The .NET Compact Framework must be installed on your desktop computer, which can be installed with the netcfsetupv2.msi file located in the \SDK\v2.0\CompactFramework\ folder under Microsft.NET or Visual Studio 8 under Program files.