I am adding user control to listbox. Everything works fine but i have a problem that when i add 10 user controls then i am expecting that listbox should show scroll so that i can select items at the end of listbox but this never happens even after setting show scroll property to true.
here is my code
UserControl1 button = new UserControl1();
button.Location = new Point(10, 100 * i + 10);
button.Size = new System.Drawing.Size(560, 59);
button.MessageUsername = "Wao this is great";
listBox1.Controls.Add(button);
I am open to ideas
here is the picture you can see that there is no scroll