Example. I have 12 lines in my TXT. When I Upload it into listbox. The listbox force the lines tobe 10 lines.
Anyone can teach me how to limit lines on listbox.
Any help would be greatly appreciate. Thank you~
Jump to Post
A listbox can hold any number of lines. If you mean that it limits the number of visible lines, you can change that by changing the Height property. If you do
ListBox1.Height = ListBox1.ItemHeight * (1 + ListBox1.Items.Count)
then, assuming the form is big enough, the listbox will …
All 6 Replies
Be a part of the DaniWeb community