It is already in a sizer. The ListBox is empty to begin with. Then from user input, I add a list of numbers, which does not change the size. However, if the Frame is resized the ListBox become too big, and shrinks the Panels around it. SetMaxSize doesn't seem do anything to stop it from growing.