Visual Basic: Windows Controls
Returns or sets a value that determines the width of a Panel object after the StatusBar control has been resized.
object.AutoSize [= number]
The AutoSize property syntax has these parts:
|object||An object expression that evaluates to a Panel object.|
|number||A constant or value specifying the type of action, as described in Settings.|
The settings for number are:
|sbrNoAutoSize||0||(Default) None. No autosizing occurs. The width of the Panel is always and exactly that specified by the Width property.|
|sbrSpring||1||Spring. When the parent form resizes and there is extra space available, all panels with this setting divide the space and grow accordingly. However, the panels' width never falls below that specified by the MinWidth property.|
|sbrContents||2||Content. The Panel is resized to fit its contents, however, the width will never fall below the width specified by the MinWidth property.|
Panel objects with the Contents style have precedence over those with the Spring style. This means that a Spring-style Panel is shortened if a Panel with the Contents style requires that space.