Dynamic ListBox as a UserControl -> Ugly Border
Hello,
i have created a ListBox as a UserControl, that can be controlled by "properties".
Well but the only Problem is that it has a small but ugly Border on the bottom.
ListBox in the Editor:

ListBox during Runtime

The Load and Paint Events of the parent UserControl are configured that the Listbox size should match the parent Control Size. ListBox.Width=*.Width.
Well how can i get rid of this ugly Effect?
This is a migrated post! Originally posted on 07.02.2011 by user sph11. Please be aware that information can be outdated.