读书人

toolStripContainer 怎么实现折叠功能

发布时间: 2012-12-14 10:33:07 作者: rapoo

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楼的可能是误解我的意思了,我是要实现它的折叠功能...
[解决办法]

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

读书人网 >.NET Framework

热点推荐