添加行 产生combobox.textbox.lable等控件为一行  但动态控件数组产生的textbox大小一样 如图这种效果不一样的不知怎么做 希望指教

解决方案 »

  1.   

    用dategridview控件吗 那插入数据库就麻烦了吧 我在网上下的进销存系统想做毕设 给个思路
      

  2.   

    你感觉你好像在说asp.net 我想做cs结构的 
      

  3.   

    用代码写.如webform插入Label.Label Lab = new Label; // 实例化Label
    Lab.Location = new System.Drawing.Point(10, 10);  //定义位置
    Lab.Text = "Label"; //设置..Lab.Click += new EventHandler(Lab_Click);  // 定义事件this.Controls.Add(Lab); // 插入到窗口. 这里的this是Form
      

  4.   

    http://hiphotos.baidu.com/gt20073/pic/item/05a0b089810e2da20f2444ba.jpg添加行
      

  5.   

    http://hiphotos.baidu.com/gt20073/pic/item/05a0b089810e2da20f2444ba.jpg
      

  6.   

    http://hiphotos.baidu.com/gt20073/pic/item/05a0b089810e2da20f2444ba.jpg
      

  7.   

    http://hiphotos.baidu.com/gt20073/pic/item/05a0b089810e2da20f2444ba.jpg
      

  8.   

    控件数组只在vb里面用过
    不知道在.NET里面还有这个概念吗
      

  9.   

    http://hiphotos.baidu.com/gt20073/pic/item/05a0b089810e2da20f2444ba.jpg
    楼上的帮我看一下 添加行 应怎样做 需要粘贴网址 超连不好用 
      

  10.   

    做一个固定的模板,每次都new这个模板,加入到Panel