示例#1
0
        public TextBoxBase()
        {
            cursor = new TextCursor(this);
            cursor.ResetCursorPaintMode();

            BackColor = Color.FromArgb(245, 245, 245);

            Text = "test text \r\nnew line was there";
        }
        public TextBoxBase()
        {
            BackColor = Color.FromArgb(245, 245, 245);

            cursor = new TextCursor(this);
            cursor.ResetCursorPaintMode();

            vscroll          = new VScrollBar();
            vscroll.Anchor   = AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
            vscroll.Location = new Point(Width - vscroll.Width, 0);
            vscroll.Height   = Height;

            Controls.Add(vscroll);
        }