你可以设置按钮的Anchor属性,使其固定在底端

解决方案 »

  1.   

    每次动态改变LocationButton1.Location = new System.Drawing.Point(4, 8);
      

  2.   

    Location是application中button的属性,网页中没有此项。
      

  3.   

    private void Button1_Click(object sender, System.EventArgs e)
    {
    TextBox1.Text="button clicked "+ n;

    Button1.Style.Add("style","LEFT: 165px; POSITION: absolute; TOP: 159px");

    }
    //用style
      

  4.   

    如何在 Button1.Style.Add(  "style  ",  "LEFT:  165px;  POSITION:  absolute;  TOP:  159px  ");  中加入变量?
      

  5.   

    string styleBt = "LEFT:"+变量.toString()+";position: absolute; top:"+变量.toString() );替换一下就可以了吧!