http://www.cnblogs.com/Files/crystaller/Zhaozhao.Module.rar
以前写的模仿MSN一个窗体的代码

解决方案 »

  1.   

    这个上codeproject.com找,肯定有。
      

  2.   

    可能需要用到第三方控件,比如抽屉控件等,不过codeproject上有一些例子,可以Down来看看。
      

  3.   

    使用GroupPanel
    就可以实现上述功能了
    我这有代码,需要的话我可以把代码发给你
      

  4.   

    ls,我也想要一个[email protected],谢谢
      

  5.   

    lz,give it to me too.thank you!
    E-mail:[email protected]
      

  6.   

    我也要一个 [email protected]
    谢谢!
      

  7.   

    [email protected]
    谢谢了,共同学习!
      

  8.   

    "请问能加上QQ侧边上的网络硬盘那种形式的么?"
    用TabControl就可以实现了
      

  9.   

    朋友,能否给我发一个,多谢
    [email protected]
      

  10.   

    我也很想要![email protected] 非常感谢!
      

  11.   

    我也想 楼主  发份给我 可以吗
    [email protected]
      

  12.   

      也请给我法一分啊,谢谢了~!
       [email protected]
      

  13.   

    第三方控件dotnetbar有许多相应的demo,不过不开源
      

  14.   

    给我也发一份吧,谢谢,学习...
    [email protected]
      

  15.   

    能给我也发一份吗???  也想学习学习~~~~
    [email protected]
      

  16.   

    我也想学习一下!!
    [email protected]
      

  17.   

    我写了一个很简单的其实,你可以去codeproject找几个例子看看
      

  18.   

    你可以到我的资源里面去下载,看看是不是你想要的界面:http://download.csdn.net/user/yaosir
      

  19.   

    你到我的资源里面下载吧。c# contorl xp style form 1.1。资源地址:http://download.csdn.net/user/yaosir
      

  20.   

    TO:yaosir  能共享一下源码吗?十分感谢!!
      

  21.   

    XtraNavBar  这个控件估计是楼主要找的 里面有个样式设置一下就是QQ面版的下载地址:http://www.cncode.com/downinfo/3122.html
      

  22.   

    楼主麻烦也给我发一份,谢谢
    [email protected]
      

  23.   

    我也要一个,请楼主发一分给我,谢谢!
    E-mail :[email protected]
      

  24.   

    请你也发一份给我吧,万分感激。
    E-mail:[email protected]
      

  25.   

    请给我也发一份吧。谢谢!
    [email protected]
      

  26.   

    我也要一个,请楼主发一分给我,谢谢! 
    E-mail :[email protected]
      

  27.   

    随便写了下
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;namespace qq
    {
    /// <summary>
    /// Form1 的摘要说明。
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    {
    private System.Windows.Forms.Panel panel1;
    private System.Windows.Forms.Button button1;
    private Button[] btnMine=new Button[10];
    //Array btnMine=Array.CreateInstance(typeof(Button),10);
    private System.Windows.Forms.TextBox textBox1;
    private System.Windows.Forms.TextBox textBox2;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.Button button2;
    /// <summary>
    /// 必需的设计器变量。
    /// </summary>
    private System.ComponentModel.Container components = null; public Form1()
    {
    //
    // Windows 窗体设计器支持所必需的
    //
    InitializeComponent(); //
    // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
    //
    } /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    protected override void Dispose( bool disposing )
    {
    if( disposing )
    {
    if (components != null) 
    {
    components.Dispose();
    }
    }
    base.Dispose( disposing );
    } #region Windows 窗体设计器生成的代码
    /// <summary>
    /// 设计器支持所需的方法 - 不要使用代码编辑器修改
    /// 此方法的内容。
    /// </summary>
    private void InitializeComponent()
    {
    this.panel1 = new System.Windows.Forms.Panel();
    this.button1 = new System.Windows.Forms.Button();
    this.textBox1 = new System.Windows.Forms.TextBox();
    this.textBox2 = new System.Windows.Forms.TextBox();
    this.label1 = new System.Windows.Forms.Label();
    this.label2 = new System.Windows.Forms.Label();
    this.button2 = new System.Windows.Forms.Button();
    this.SuspendLayout();
    // 
    // panel1
    // 
    this.panel1.BackColor = System.Drawing.Color.White;
    this.panel1.Location = new System.Drawing.Point(4, 22);
    this.panel1.Name = "panel1";
    this.panel1.Size = new System.Drawing.Size(130, 244);
    this.panel1.TabIndex = 0;
    // 
    // button1
    // 
    this.button1.Location = new System.Drawing.Point(142, 22);
    this.button1.Name = "button1";
    this.button1.Size = new System.Drawing.Size(114, 26);
    this.button1.TabIndex = 1;
    this.button1.Text = "添加";
    this.button1.Click += new System.EventHandler(this.button1_Click);
    // 
    // textBox1
    // 
    this.textBox1.Location = new System.Drawing.Point(206, 86);
    this.textBox1.Name = "textBox1";
    this.textBox1.Size = new System.Drawing.Size(48, 21);
    this.textBox1.TabIndex = 2;
    this.textBox1.Text = "";
    // 
    // textBox2
    // 
    this.textBox2.Location = new System.Drawing.Point(206, 120);
    this.textBox2.Name = "textBox2";
    this.textBox2.Size = new System.Drawing.Size(48, 21);
    this.textBox2.TabIndex = 3;
    this.textBox2.Text = "";
    // 
    // label1
    // 
    this.label1.Location = new System.Drawing.Point(144, 92);
    this.label1.Name = "label1";
    this.label1.Size = new System.Drawing.Size(62, 16);
    this.label1.TabIndex = 4;
    this.label1.Text = "按钮数量:";
    // 
    // label2
    // 
    this.label2.Location = new System.Drawing.Point(144, 124);
    this.label2.Name = "label2";
    this.label2.Size = new System.Drawing.Size(62, 16);
    this.label2.TabIndex = 5;
    this.label2.Text = "选种按钮:";
    // 
    // button2
    // 
    this.button2.Location = new System.Drawing.Point(142, 50);
    this.button2.Name = "button2";
    this.button2.Size = new System.Drawing.Size(114, 26);
    this.button2.TabIndex = 6;
    this.button2.Text = "移除";
    this.button2.Click += new System.EventHandler(this.button2_Click);
    // 
    // Form1
    // 
    this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
    this.ClientSize = new System.Drawing.Size(260, 273);
    this.Controls.Add(this.button2);
    this.Controls.Add(this.label2);
    this.Controls.Add(this.label1);
    this.Controls.Add(this.textBox2);
    this.Controls.Add(this.textBox1);
    this.Controls.Add(this.button1);
    this.Controls.Add(this.panel1);
    this.Name = "Form1";
    this.Text = "Form1";
    this.ResumeLayout(false); }
    #endregion /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main() 
    {
    Application.Run(new Form1());
    }
            
    bool []bottom=new bool[10];//记录Button是否在下
            int btnNumber=0;//Button数
    int height=22;//按纽高度
    int width=125;//按纽宽度
    int x=2;//开始在窗体上排列按纽的初始横坐标
    //添加
    private void button1_Click(object sender, System.EventArgs e)
    {
    if(btnNumber>=10)
    {
    return;
    }            btnNumber=btnNumber+1;
    int y=this.panel1.Height-height*btnNumber;//开始在窗体上排列按纽的初始纵坐标
    this.panel1.Controls.Clear();
    for(int i=0;i<btnNumber;i++)
    {
    this.btnMine[i]=new Button();
    this.btnMine[i].Size=new System.Drawing.Size(width,height);
    this.btnMine[i].Location=new System.Drawing.Point(x,y);
    this.btnMine[i].Text=i.ToString();
    this.btnMine[i].BackColor=System.Drawing.Color.Coral;
    this.btnMine[i].Click+=new EventHandler(btnMineAll_Click);
    this.panel1.Controls.Add(this.btnMine[i]);
    y=y+height;
    bottom[i]=true;
    }
    this.textBox1.Text=btnNumber.ToString();


    }
    //按钮单击事件
    private void btnMineAll_Click(object sender, System.EventArgs e)
    {
    int index=((Button)sender).TabIndex;
    this.textBox2.Text=this.btnMine[index].Text;
    if(bottom[index]==true)
    {
    moveUp(index);
    }
    else
    {
    moveDown(index);
    }
    }
    private void  moveUp(int index)
    {
    int y=this.panel1.Top-height;//开始在窗体上排列按纽的初始纵坐标
    for(int i=0;i<=index;i++)
    {
    this.btnMine[i].Location=new System.Drawing.Point(x,y);
    y=y+height;
    bottom[i]=false;
    } }

    private void moveDown(int index)
    {
    int y=this.panel1.Height-height;//开始在窗体上排列按纽的初始纵坐标
    for(int i=btnNumber-1;i>index;i--)
    {
    this.btnMine[i].Location=new System.Drawing.Point(x,y);
    y=y-height;
    bottom[i]=true;
    }
    } private void button2_Click(object sender, System.EventArgs e)
    {
    // this.btnMine[1].r
    }
    // private void remove(int index)
    // {
    //           for()
    // }
    }
      

  28.   

    麻烦LZ给俺也发一个:[email protected]
      

  29.   

    给一份啦,谢谢
    [email protected]
      

  30.   

    麻烦LZ给俺也发一个:[email protected]