Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-create-a-professionally-styled-toolstrip-control.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.8 KiB
Raw Blame History

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Create a Professionally Styled ToolStrip Control 03/30/2017
csharp
vb
toolbars [Windows Forms]
ToolStripProfessionalRenderer class [Windows Forms]
ToolStripRenderer class [Windows Forms]
ToolStrip control [Windows Forms]
c208b2f6-8105-474b-9075-d582e1792870

How to: Create a Professionally Styled ToolStrip Control

You can give your applications xref:System.Windows.Forms.ToolStrip controls a professional appearance and behavior (look and feel) by writing your own class derived from the xref:System.Windows.Forms.ToolStripProfessionalRenderer type.

There is extensive support for this feature in Visual Studio.

See Walkthrough: Creating a Professionally Styled ToolStrip Control.

Example

The following code example demonstrates how to use xref:System.Windows.Forms.ToolStrip controls to create a composite control that mimics the Navigation Pane provided by Microsoft® Outlook®.

[!code-csharpSystem.Windows.Forms.ToolStrip.StackView#1] [!code-vbSystem.Windows.Forms.ToolStrip.StackView#1]

Compiling the Code

This example requires:

  • References to the System.Drawing and System.Windows.Forms assemblies.

See also