With the exception of the horizontal scrollbar, normal use is not possible; you can disable the vertical scrollbar.
You can set it always visible or automatically using the ScrollAlwaysVisible property (also in VB).
When you add an item, you can instead re-compute ClientSize by calculating something like this (untested, you might need to add Padding values ββto it):
Size sz = new Size(ListBox1.ClientSize.Width, _ ListBox1.Items.Count * ListBox1.Font.Height); ListBox1.ClientSize = sz
Of course, you should add a check for the value in case it is zero, and / or you want the minimum / maximum height.
source share