Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-add-a-control-to-a-toolstripcontentpanel.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.3 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Add a Control to a ToolStripContentPanel 03/30/2017
csharp
vb
ToolStripContentPanel [Windows Forms], adding controls
fa410960-bf1a-42fc-80e8-f2e27fb3dbb8

How to: Add a Control to a ToolStripContentPanel

You can programmatically add one or more controls to a xref:System.Windows.Forms.ToolStripContentPanel.

Example

The following code example demonstrates how to add a xref:System.Windows.Forms.RichTextBox to a xref:System.Windows.Forms.ToolStripContentPanel.

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

Compiling the Code

This code example requires:

  • References to the System, System.Data and System.Windows.Forms assemblies.

See also