The constructor of MyRichTextBox takes a boolean indicating if the RichTextBox is readonly (in that case, only the Copy option is available) or not.