设置方法:textbox.text = “文本内容”
设置方法:textbox.MaxLength = 20
设置方法:textbox.ReadOnly = true
设置方法:textbox.PasswordChar = ‘*’
设置方法:textbox.Enabled = false
设置方法:textbox.BorderStyle = BorderStyle.FixedSingle
设置方法:textbox.TextAlign = HorizontalAlignment.Center
设置方法:textbox.Multiline = true
设置方法:textbox.ScrollBars = ScrollBars.Vertical
设置方法:textbox.SelectionStart = 5
设置方法:textbox.SelectedText = “被选择的文本”
设置方法:textbox.SelectionStart = 3
设置方法:textbox.SelectionLength = 5
设置方法:textbox.Font = new Font(“宋体”, 12);
设置方法:textbox.ForeColor = Color.Red;
设置方法:textbox.BackColor = Color.Yellow;
设置方法:textbox.TabIndex = 1;
设置方法:textbox.Size = new Size(100, 50);
或者:textbox.Location = new Point(50, 50);