/// <summary> /// Initializes a new instance of the TextBox class. /// </summary> public TextBox() { Cursor = Cursors.IBeam; document = new TextBoxDocument(this); VerticalScrollBar.Enabled = false; VerticalScrollBar.ValueChanged += (o, e) => DoScroll(0, (o as VerticalScrollBar) !.Value - scroll_y); }