How does one get scrollbars on a TextBox
?
The HorizontalScrollBarVisibility
and VerticalScrollBarVisibility
properties are used to set horizontal and vertical scroll bars of a TextBox, The ScrollBarVisibility enumeration has four values – Disabled
, Auto
, Hidden
, and Visible
.
<TextBox Name="TextBox"
Width="300" Height="150"
HorizontalScrollBarVisibility="Visible"
VerticalScrollBarVisibility="Visible"
TextWrapping="Wrap" >
</TextBox>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With