winzip icon

ucRTFEditor -- Richtextbox editor control (2019-02-26, update)

Email
Submitted on: 2/26/2019 4:33:44 PM
By: Mark Kintigh  
Level: Intermediate
User Rating: By 2 Users
Compatibility: VB.NET
Views: 777
 
     I wrote this because I got tired of looking for a free control that works like this; most of the time I only find similar editor examples as full editor applications. I am not keeping any rights to this code and am presenting it as is. If you make any improvements or catch/fix any bugs please pass them along; I want this control to keep evolving to the best and finest of its kind. Also, please keep up the documentation in the code as you add to / make revisions. Please make sure you document what you changed / added so I can merge it into the master copy of the control that I'll be still working on.

This control is designed to be a self-contained word processor / editor for RTF based files or memo fields (the file you are reading was written using the control). Some of the features that are included are.... Standard file operations (open, save, new, print, print preview, ...); any or all of these can be turned off according to properties
  • Standard editing (copy, paste, find, replace, ...)
  • Locking the contents for read-only
  • Standard formatting options (font selection, text color, background color, bold, alignment, bullets, indents, ...)
  • Inserting of images and date (by format / selection window)
  • Property: ToolbarsOnFocusOnly. This property will dynamically show/hide the toolbars of the editor depending on focus of the editor and the LockEditor property,
All of the support windows are built within the class itself.

This update contains some modifications to be compatible with VS 2017 and added the ability to change the control's font, which will update the editor's font as well.

Know Bug:
The only thing I have not been able to accomplish to date is a true right margin. I cannot figure out how to get the actual page width for the printable area. While this is not a show stopper, it is an annoyance.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

3/22/2019 7:14:07 AMTrent Jackson

You have put a lot of work into this. I can read the code in MS Visual Studio 2017. I have never done an control before. Some people say that I just make games for babies. Could you advise me on how to implement this control on an form and OR update the submission with the inclusion of an 'hit the F5 key' to just run the control. I am still learning .NET 2017, but I practically have an degree with Boolean logic. Cheers buddy. Thanks for the great submission(s) 5*
(If this comment was disrespectful, please report it.)

 
4/5/2019 8:52:45 PMDave Bowlin

Excellent, thank you. Saves a ton of coding time.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.