
38
LESSON 3 Making Controls arrange theMselves
The URL for the book selected in Figure 3-2 is too long to fit within the GroupBox, so it is truncated
even though the form has extra wasted space on the right. The
ListBox isn’t big enough to display all
of its items even though there’s wasted space at the bottom. It would be nice if the controls rearranged
themselves to use the available space and display the entire URL and more list items.
Figure 3-3 shows another problem with this form.
If the user shrinks the form, the
TextBoxes and
URL
LinkLabel are chopped off, the Year Label
and
TextBox are chopped in half vertically, the
ListBox doesn’t fit, and the cover picture is com-
pletely missing.
The program would look nicer if the controls were
shrunk so you could at least see their edges. Some
of the values still wouldn’t fit but at least the form
wouldn’t look so a ...