日期:2014-05-20  浏览次数:21324 次

toolStripContainer 如何实现折叠功能
请教 toolStripContainer 如何实现折叠功能?


------解决方案--------------------
http://www.cnblogs.com/hzuIT/articles/691157.html
------解决方案--------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;


public class Form1 : Form
{
    private ToolStripContainer toolStripContainer1;
    private ToolStrip toolStrip1;

    public Form1()
    {
        InitializeComponent();
    }
    [STAThread]
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.Run(new Form1());
    }

    private void InitializeComponent()
    {
        toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
        toolStrip1 = new System.Windows.Forms.ToolStrip();
        // Add items to the ToolStrip.
        toolStrip1.Items.Add("One");
        toolStrip1.Items.Add("Two");
        toolStrip1.Items.Add("Three");
        // Add the ToolStrip to the top panel of the ToolStripContainer.
        toolStripContainer1.TopToolStripPanel.Controls.Add(toolStrip1);
        // Add the ToolStripContainer to the form.
        Controls.Add(toolStripContainer1);
 
    }
}


------解决方案--------------------
1楼和2楼的可能是误解我的意思了,我是要实现它的折叠功能...
------解决方案--------------------

用第三方的多好啊。。。
------解决方案--------------------
问题已解决,谢谢...
------解决方案--------------------
怎么解决的啊  我也在关注这个问题
------解决方案--------------------
怎么实现的,分享一下。