RichTextBox (rch)

RichTextBox -

These provide more functionality than a regular textbox.
They offer a Find for searching for individual strings.
A LoadFile method for displays the contents of a file.


This class does not inherit from TextBox rather both the classes are inherited from System.Windows.Forms.TextBoxBase


Displays multiple lines of text by default



Auto Scroll to Bottom - this doesn’t work !!

If you have a richtextbox on a windows forms and the form is resized the text in the richtextbox is not automatically adjusted and scrolled to the bottom


Me.rchRichTExtBox.LoadFile() 
Me.rchRichTextBox.Text = ""
Me.rchRichTextBox.SelectionStart = Me.rchRichTextBox.Text.Length
Me.rchRichTextBox.ScrollToCaret








© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext