• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 759
  • Last Modified:

Resize a toolstrip at runtime in windows form?

How do I allow a user to resize a toolstrip at runtime in a windows form?
I'm using C++ managed mode.  Could you post some code to help me?

Thanks.
this->toolStrip1->AllowItemReorder = true;
this->toolStrip1->AutoSize = false;
this->toolStrip1->BackColor = System::Drawing::SystemColors::ScrollBar;
this->toolStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->toolStripButton1, 
this->toolStripLabel1, this->toolStripDropDownButton1});
this->toolStrip1->Location = System::Drawing::Point(0, 0);
this->toolStrip1->Name = L"toolStrip1";
this->toolStrip1->RenderMode = System::Windows::Forms::ToolStripRenderMode::System;
this->toolStrip1->Size = System::Drawing::Size(662, 38);
this->toolStrip1->TabIndex = 0;
this->toolStrip1->Text = L"toolStrip1";

Open in new window

0
Confusioner
Asked:
Confusioner
1 Solution
 
trinitrotolueneCommented:
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now