Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

Detecting wordwrap and padding accordingly? (RichTextbox?)

Posted: Feb/15/2010   By: pankaj   Points:15   Category: .NET  - .NET Framework    Views:185   Vote Up (0)   Vote Down (0)    
Heya,I'm trying to format a chat field something like this:
12. july, 2010

12:40 Hi, are you there now?

12:46 Cool, cya tonight :-) What do you want me to bring?

01:16 Sure thing, it's all packed and ready!


Looks pretty fine and is easy to do. Now, my problem is if the text is too long (or the window too small), it could look like this:
12. july, 2010

12:40 Hi, are you there now?

12:46 Cool, cya tonight :-) What do you want me to

bring?

01:04 No, i cannot bring the alligator, it is just

too dangerous - it would probably kill us all before we

even got the party started! ;-)


That's exactly my problem (not the alligator, the word wrap!). I'd like it to wrap like this:
12. july, 2010

12:40 Hi, are you there now?

12:46 Cool, cya tonight :-) What do you want me to

bring?

01:04 No, i cannot bring the alligator, it is just

too dangerous - it would probably kill us all

before we even got the party started! ;-)


How would i do that? Using a RichTextbox, or something else?Thanks for any help - this is the last piece of my apps puzzle that needs to be solved :-)// Yoc.

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Resource Leaks: Detecting, Locating, and Repairing Your Leaky GDI Code

  
Leaks are possible, even in robust Windows-based applications. As bugs go, leaks are some of the most difficult to find, especially when they occur in graphics device interface (GDI) objects and menus. While free and third-party tools exist to detect such leaks, it is usually difficult to make the connection between the numeric handle value returned by the tool, and a bitmap or menu in your program. This can limit the usefulness of these tools. Custom tools can be built that detect, track down, and eradicate GDI and menu leaks. Here, three such tools are built using well-known and documented APIs.Christophe NasarreMSDN Magazine March 2001
 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge