Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

Show whitespaces

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
asjad - 27 Dec 2005 07:50 GMT
Is there is any way that i can show whitespaces in my editor, made by
extending rich text box.
Jani Järvinen [MVP] - 27 Dec 2005 13:05 GMT
Hello!

> Is there is any way that i can show whitespaces in my editor, made by
> extending rich text box.

The RichTextBox control is very versatile, but I don't think that it is able
to show whitespace (tabs and space characters).

Only manually converting the space characters to the dot character
(ALT+0183) comes into mind. Of course, this solution is far from perfect,
but should work nonetheless. Third party component will most probably help
you here.

Oh, in case you are interested, there are two nice RichTextBox customization
related articles written by Pete Vidler:

Extending RichTextBox
http://geekswithblogs.net/pvidler/archive/2003/10/14/182.aspx

Extending RichTextBox - Part II
http://geekswithblogs.net/pvidler/archive/2003/10/15/188.aspx

Hope this helps.

Signature

Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@removethis.dystopia.fi
http://www.saunalahti.fi/janij/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.