Click here to Skip to main content
15,886,714 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
1)add toolstrippanel to the form and add collection of toolstrip menu in the addedtoolstrip panel.
ii)write the code for joining the toolstrip in the panel .(i attached the code below)
C#
private void Form1_Load(object sender, EventArgs e)
{
    ToolStripPanel panel = new ToolStripPanel();
    panel.Dock = DockStyle.Top;
    panel.Join(toolStrip1);
    panel.Join(toolStrip2);

    ToolStripPanel panel1 = new ToolStripPanel();
    panel1.Join(toolStrip3);
    panel1.Join(toolStrip4);

}
iii) Run the form.drag the toolstrip menu and bring it to a different location.
iv)close the form
v)reload the form .now toolstrip menu will join together (after running the pgm)


Task to be done:
As said above point (v ) the toolstrip menu will join together.but as done in point (iii) toolstrip menu has to appear in the dragged location when form reload
Posted
Updated 24-Jun-13 8:53am
v2
Comments
[no name] 24-Jun-13 12:33pm    
And in what way was the answer you already have not good enough for you?
Nelek 24-Jun-13 14:54pm    
And the question is...?
namburathna 26-Jun-13 10:45am    
The thing i want to do is, when i close and open the program, i want to see the toolstrips at their last locations.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900