public partial class Form1 : Form
{
public System.Windows.Forms.ScrollBars ScrollBars { get; set; }
private int startingY = 0;
private GroupBox lastGB = null;
private int timerCounter = 0;
public Form1()
{
InitializeComponent();
textBox1.SizeChanged += (s, e) => { UpdateLabelPositions(); };
textBox1.LocationChanged += (s, e) => { UpdateLabelPositions(); };
this.Shown += (s, e) => { UpdateLabelPositions(); };
textBox1.Multiline = true;
textBox1.ScrollBars = ScrollBars.Vertical;
}
but the textBox scroll bar is grayed out disabled even if I'm adding to it many items.
I'm adding to the textBox many groupboxes but like in the screenshot they are added down inside the textbox and the textbox don't have enabled scrollbars. I tried also in the designer to set the scroll bars to BOTH but it didn't change anything.