Solved

Resize a toolstrip at runtime in windows form?

Posted on 2007-11-23
1
748 Views
Last Modified: 2010-02-10
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
Comment
Question by:Confusioner
1 Comment
 
LVL 12

Accepted Solution

by:
trinitrotoluene earned 500 total points
ID: 20339734
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now