Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, this is what i am not able to do (find out how to manage to do it):

for example i want to print a text from a textbox, but in the textbox the characters might be up to 250. And i wanna put this text in a Rectangle, but the width of the Rectangle must not be changed, so it is (for example) 500 points/dots in width (or pixels, i don't know exactly in what are the length measured in) and 200 in height. And if the text is with all 250 characters, then it will need to go in new line before it reaches the border of the Rectangle, but also if the text is big enough to fill the height of the Rectangle then the height of the Rectangle should be expanded accordingly.
Also (if it is possible), when going into new line to see if there are words that can be separated, for example, if the text in the textbox is
"this is just an example text" , then the text to be separated like this
"this is just
an example text" and not
"this is just a
n example text"
(well same as we are writing on everything, like this post for example)

So any help/guidance is appreciated.
Thanks in forward..
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900