Beispiel #1
0
 private void Frm_Main_Load(object sender, EventArgs e)
 {
     TextBoxx tb = new TextBoxx();//创建文本框对象
     tb.Width = Width;//设置文本框宽度
     tb.Height = Height;//设置文本框高度
     tb.Location = new Point(0, 0);//设置文本框起始位置
     tb.Multiline = true;//设置文本框为多行
     Controls.Add(tb);//将文本框添加到控件集合
 }
Beispiel #2
0
        private void Frm_Main_Load(object sender, EventArgs e)
        {
            TextBoxx tb = new TextBoxx();   //建立文字框物件

            tb.Width     = Width;           //設定文字框寬度
            tb.Height    = Height;          //設定文字框高度
            tb.Location  = new Point(0, 0); //設定文字框起始位置
            tb.Multiline = true;            //設定文字框為多行
            Controls.Add(tb);               //將文字框新增到控制元件集合
        }
Beispiel #3
0
        private void Frm_Main_Load(object sender, EventArgs e)
        {
            TextBoxx tb = new TextBoxx();   //创建文本框对象

            tb.Width     = Width;           //设置文本框宽度
            tb.Height    = Height;          //设置文本框高度
            tb.Location  = new Point(0, 0); //设置文本框起始位置
            tb.Multiline = true;            //设置文本框为多行
            Controls.Add(tb);               //将文本框添加到控件集合
        }