I want to display data in a listbox such that the data should fit the listbox exactly. Like If the data has 3 rows The list list box should not have an additional row empty
Please Help
Thanks
Veeraraghavan
Trouble in displaying data in listbox
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Jan 17, 2008, 10:36 PM EST
listBox1.Height = listBox1.ItemHeight * listBox1.Items.Count;
Veeraragahvan Thirumale18 reputationPosted Jan 20, 2008, 9:02 PM EST
Thanks a lot
Veeraraghavan