Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Samples
Technology Samples
 ToolStrip Sample

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Samples
ToolStrip Sample

This sample provides a launcher from which you can choose the following samples:

  • The ToolStrip Color Picker sample demonstrates adding a table layout to a drop-down control to create a color picker grid.

  • The ToolStrip PropertyGrid sample demonstrates the interaction between a DataGridView control and common layout-related properties of a ToolStrip dynamically at run time.

  • The ToolStripRenderer Switcher sample demonstrates changing the renderer and visual styles for an application.

For information about using the samples, see the following topics:

Security noteSecurity Note:

This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.

To build and run the sample using the command prompt

  1. At the command prompt, navigate to the location where you saved the uncompressed sample files.

  2. Navigate to the CS subdirectory under the ToolStripSamples directory.

  3. Type msbuild to build the sample using the solution (.sln) file provided.

  4. Type cd ToolStripSamples\bin\Debug to navigate to the location of the executable file.

  5. Type ToolStripSamples.exe to run the sample.

To build and run the sample using Visual Studio

  1. In Windows Explorer, navigate to the location where you saved the uncompressed sample files.

  2. Navigate to one of the language-specific subdirectories under the ToolStripSamples directory.

  3. Double-click the solution (.sln) file to open it in Visual Studio.

  4. In Visual Studio, press F5 to build and run the sample.

To use the ToolStripSamples sample

  • Choose various options from the dialog box and observe the results.

  • Adding a table layout to a drop-down control to create a color picker grid.

  • The interaction between a DataGridView control and common layout-related properties of a ToolStrip dynamically at run time.

  • Changing the renderer and visual styles for an application.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Missing download link      Tom Dykstra - MSFT   |   Edit   |   Show History

The link will be restored in the next release of the documentation. You can download the .NET Framework 2.0 version of the sample from the 2.0 version of the page.

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker