• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

TCheckListBox always has one extra "blank" item at the bottom...

I've got a little problem that's driving me batty - I populate my TChecklistbox with items properly (I think), but there is always an extra "blank" item at the very bottom of it. It doesn't hurt anything, but it looks sloppy. Has anyone ever ran into this issue before?

Thanks!
    Shawn
0
shawn857
Asked:
shawn857
1 Solution
 
Marco GasiFreelancerCommented:
Yes but it was not a TCheckListbox: i happened several years ago so I don't remember well but I know I have solved the issue in a brutal but efficient way: deleting le last item after having finished to fill the list.

But you could also try to clear the list items before to fill it so an eventually blank item added by default would be dropped.

Or you could post here the whoile code related to the list filling so we can take a look to see if you're missing something.
0
 
Sinisa VukCommented:
If you fill item from code - always use: Box1.Items.Clear
Add string line without CR / LF. And make sure that you have not use padding.
0
 
shawn857Author Commented:
Thank you Sir.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now