Windows Develop Bookmark and Share   
 index > Windows Forms Designer > ToolStripPanel loses design location of ToolStrips
 

ToolStripPanel loses design location of ToolStrips

I have a ToolStripContainer which contains two ToolStrips in it's TopToolStripPanel. It seems like if I open and close the form which contains the panels in the designer, they always move to a new location. Any ideas why that might be happening?

Also, I notice that each ToolStripPanel which is part of the ToolStripContainer has a little arrow on it in the designer. When I click on it, it switches directions, from pointing in towards the ContentPanel of the ToolStripPanel to pointing towards the nearest edge of the ToolStripPanel. What do the arrows mean?
bpeikes  Friday, July 17, 2009 5:08 PM
Hi,

For your first problem, do you open the form containing the ToolStripContainer at design time or run time? I couldn't reproduce the problem either at design time or run time. Open the .design.cs file of the form and navigate to the InitializeCompoment method to see if the Location property of the two ToolStrip which are added to the top toolstrip panel has been set.

For your second question, the little arrow on each of the four toolstrip panel within the ToolStripContainer is a glyph which is used to expand or collapse the corresponding toolstrip panel at design time. When a ToolStripPanel is expanded, you can add controls into this ToolStripPanel.

Hope this helps.

Sincerely,
Linda Liu


Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Monday, July 20, 2009 10:31 AM
The problem is during design time. I'm not sure why you marked your response as an answer since you couldn't reproduce my issue. As for the little arrows, they do not expand those controls.
bpeikes  Monday, July 27, 2009 2:38 PM

Hi Bpeikes,

I thought I had answered your second question. As for the first problem, I made a suggestion which may solve the problem.

Have you checked the code in the InitializeComponent method of the form to see if the Location property of the two ToolStrip are set?

As fo the little arrows, if you click on it, the corresponding ToolStripPanel within the ToolStripContainer will open or hide.

Sincerely,
Linda Liu


Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Tuesday, July 28, 2009 8:04 AM

You can use google to search for other answers

Custom Search

More Threads

• 'System.Windows.Forms.Label' does not contain a definition for 'PreferredHeight'
• Controls are not visable in .net code
• 3 layers.
• DropDownWidth of ComboBox
• Creating Tree View in Datagrid in VB.Net 2005?
• Form reloading problem
• Button border issue in flat style
• how to handle Events of user control?
• Where are the "Standard Menu Icons" located?
• Search Combobox for value