Just set one of the column widths: -2. the scroll bar appears:
public Form1() {Listview1.Columns.Add("Name", 100, HorizontalAlignment.Center); Listview1.Columns.Add("Item Name", -2, HorizontalAlignment.Center); Listview1.Columns.Add("Item Link", 300, HorizontalAlignment.Center); }
When setting one or more columns up to -2 wide, a scrollbar appears, I donβt know why actually, but I had this problem because I fixed the width by creating an event that disables the width change.
Tarek hamza
source share