SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

C++ RichTextBox Control.

The Windows C++ RichTextBox control allows users to enter and edit text using more advanced text formatting offered with the TextBox control. The RichTextBox control can load RFT format as well as TXT format files for reading or editing and provide methods for saving the edited files. The RichTextBox control can also be set to detect Url information and respond to the user clicking the Url.

Namespace: System::Windows::Forms
System.Windows.Forms (in system.windows.forms.dll)

Creating an new C++ Windows forms RichTextBox.
RichTextBox^ richbox = gcnew RichTextBox;

Assigning the Dock Style to the RichTextBox Control.
richbox->Dock = System::Windows::Forms::DockStyle::Fill;

Assigning a text value to the C++ RichTextBox control.
richbox->Text = "RichTextBox Text Area.";

Adding a C++ RichTextBox control to the form.
this->Controls->Add(richbox);

Assigning the RichTextBox SelectionStart and SelectionLength properties.
richbox->HideSelection = false;
richbox->SelectionStart = 0;
richbox->SelectionLength = 11;

Setting the BackColor for the RichTextBox Control.
richbox->BackColor = System::Drawing::Color::Beige;

Setting the Selected Font style.
richbox->SelectionFont = gcnew System::Drawing::Font(richbox->SelectionFont->FontFamily,richbox->Font->Size,System::Drawing::FontStyle::Bold );



C++ RichTextBox control Tutorial.
Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces