Thursday 15 July 2010

Text that continues in next line when it reaches the end of the form C# (WinForm) -


Then I want to create a WinForm app that will start typing text from the upper left corner, in a lower right corner such as a console The application continues in a new line when it reaches the end of a line.

Example:

  & gt; Line 1: Let me know y & gt; & Gt; Line 2: Our help   

The text should be cut off, if you tell me what to say.

You can use multilingual textbox. You must notice that < P> [1] If you use fixed width fonts then it will be easy. This idea (not the actual code)

  charlimit = me.width / textwidth ("A") ---- & gt; [2] You can control the  textbox_textchanged  event to make sure the word ' autowrap ' to the next number Do not meet the line .. so when the text position is in the most correct position, you can cut it by adding text with  vbCrLf  ..  
  if LastLine.Length = Then fully pronounced + = VbCrLf lastLine = "endif   

But when you do the middle line, it will be difficult because you can repeat the following words Must Rapt (below) ..

No comments:

Post a Comment