1. TextBox Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | using System; using System.Windows.Forms; using System.Drawing; namespace WindowsFormsApp3 { class CsTextBox { TextBox text; public CsTextBox() { text = new TextBox(); text.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Left; text.Dock = DockStyle.Fill; text.Multiline = true; text.ScrollBars = ScrollBars.Both; text.Show(); } public TextBox get() { return text; } public void addText(String s) { text.Text += s; } } } |
댓글 없음:
댓글 쓰기