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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Veeraragahvan ThirumalePosted Jan 21, 2008, 2:02 AM
Thanks a lot
Veeraraghavan
Scott LyslePosted Jan 18, 2008, 3:36 AM
listBox1.Height = listBox1.ItemHeight * listBox1.Items.Count;