To make a textbox multiline unlike windows forms .Multiline = “True”, in WPF you have to set these 3 properties of TextBox Control.
- TextWrapping="Wrap"
- VerticalScrollBarVisibility="Visible"
- AcceptsReturn="True"
e.g.
<TextBox Height="66" Margin="563,46,265,0" Name="textBox1" VerticalAlignment="Top" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible"/>
14 comments:
thanks this is working.
thnks for the help
thanks for this tutorial
Excellent solution, thanks very much! I like the nice concise format, no need to filter through 5 paragraphs to get the same information. THANKS!
Good One. And best part is, it is working. Thanks
Thanks...also would you help me to 'Get entered text of a RichTextBox in WPF.
i thought life is over, because i can not find out problem's solution, and suddenly i come here, and wander.............
thankssssssssssssssssssss
Thanks, thanks, thanks!!!
Thanks alot.. Its working..
Woow how did you know... Increible carnalito, vientos man !
You can leave the verticalscrollbar visibility to Auto also by the way doesn't have to be set to Visible.
Thanx a lot... :)
Short and good, thanks!
Customizing text lines of paragraph in RichTextBox
Post a Comment