http://hi.csdn.net/attachment/201012/18/9287493_1292635792g0T7.png
这个是在.net中实现的效果
我想在winform也中实现这样的功能
1.打个比方,我是希望网页刚打开时,婚纱管理,会员管理,新闻管理是没有展开的
2.如果我点击“婚纱管理”,就会象下出现‘添加婚纱’‘婚纱详情’,而且“会员管理”不会展开。
3.点击“会员管理”、同样象下出现‘会员详情’,且 “婚纱管理”和 “新闻管理不会展开”在线等待大侠们,本人绝不吝啬这100分
   急啊!!!!!!

解决方案 »

  1.   

    LZ要的到底是Winform的还是Webform的?
      

  2.   


    我的意思是说 我现在要winform 做出这种效果来
      

  3.   

    同意4楼的,或者用这个DevComponents.DotNetBar2.dll 
      

  4.   

    用treeview控件可以实现   /// <summary>
            /// 展开一个节点后关闭其他节点
            /// </summary>
            private void treeView1_AfterExpand(object sender, TreeViewEventArgs e)
            {
               //收缩与目标node同一级别的node
                TreeNode tn = e.Node;
                if (tn.Parent != null)
                {
                    foreach (TreeNode node in tn.Parent.Nodes)
                    {
                        if (tn != node)
                        {
                            node.Collapse();
                        }
                    }
                }
                //找到目标node的总根节点,然后收缩其他的根节点
                while (tn.Parent != null)
                    tn = tn.Parent;
                foreach (TreeNode node in treeView1.Nodes)
                {
                    if (tn != node)
                    {
                        node.Collapse();
                    }
                }           
            }
      

  5.   

    用这个DevComponents.DotNetBar2.dll 吧,一个开源的控件
      

  6.   

    自己做,没有那种效果,支持dotnetbar