ToolStrip Customizing Sample
The ToolStrip Customizing sample creates resources that the user can choose with a dialog box to customize ToolStrip and MenuStrip controls in the application.
For information about using the samples, see the following topics:
Security 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
At the command prompt, navigate to the location where you saved the uncompressed sample files.
Navigate to the CS\CustomizeToolStrip subdirectory under the CustomizeToolStrip directory.
Type msbuild to build the sample using the solution (.sln) file provided.
Type cd CustomizeToolStripTest\bin\Debug to navigate to the location of the executable file.
Type CustomizeToolStripTest.exe to run the sample.
To build and run the sample using Visual Studio
In Windows Explorer, navigate to the location where you saved the uncompressed sample files.
Navigate to the CS\CustomizeToolStrip subdirectory under the CustomizeToolStrip directory.
Double-click the solution (.sln) file to open it in Visual Studio.
In Visual Studio, press F5 to build and run the sample.
To use the CustomizeToolStrip sample
- Choose various options from the dialog box and observe the results.
See Also
Reference
ToolStrip Control Overview (Windows Forms)
MenuStrip Control Overview (Windows Forms)
ToolStrip
MenuStrip