Contact at mumbai.academics@gmail.com or 8097636691
Responsive Ads Here

Wednesday, 14 February 2018

Rich Text Editor


Rich Text Editor

ABSTRACT:
Article:  Building a Simple Word Processor around an Extended Rich Textbox Control
Topics:  Win Forms, Extended Rich Text Box, RTF, Text, HTML, Text and RTF File IO, Printing Text and RTF file, Fonts, Page Setup, Print Documents, Print Preview,  File Save and File Open dialogs, Search, Search and Replace.
                          This article describes an easy approach to building a simple word processor around an extended version of the Rich Text Box (RTB) control; Microsoft has made available an extended version of the RTB control that greatly eases the requirements for printing the control’s text or RTF content.  This article and the sample application will use this extended version of the RTF control to demonstrate the following word processor related functions:
Opening Text, RTF, HTML, or other text files into a RTB control
Saving Text, RTF, HTML, or other text files from an RTB control
Implementation of the Page Setup dialog control
Implementation of the Print Preview dialog control
Implementation of the Print dialog control
Setting font properties on selected text or RTF within the RTB control
Searching for and highlighting text contained within the RTB control
Searching for and replacing text contained within the RTB control
Adding Indentation to sections of an RTB’s content
Adding Bullets to sections of an RTB’s content
Implementing Undo/Redo within an RTB
Implementing Select All, Cut, Copy, and Paste in an RTB control
Embedding Images into an RTB control
Setting page and font colors
Implementing Alignment options in an RTB control
Whilst this project will not lead you to drop MS Word, it is a decent little word processor and to that end, you may find a use for it.  I have always kept one of these on hand and have frequently tailored them to do things like provide a custom tool for viewing reports, error logs, and things of that nature when I wanted to integrate that feature into a product so that I could use it in lieu of doing something like shelling out a text file into Notepad.  Doing so allows me to control the appearance of the application, the caption in the title bar of the form, etc.
SOFTWARE SPECIFICATION:-
 OPERATING SYSTEM                      :  Windows XP Professional
 FRONT END                                      :  Microsoft Visual Studio .Net 2010
 CODING LANGUAGE                       :  C# .Net
HARDWARE SPECIFICATION:-            
SYSTEM                                             :   Pentium III 700 MHz
HARD DISK                                       :   40 GB
RAM                                                   :   256MB

No comments:

Post a Comment