Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6902199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:46:05+00:00 2026-05-27T07:46:05+00:00

I need to format text to be outputted in a richtextbox, for example, just

  • 0

I need to format text to be outputted in a richtextbox, for example, just doing this in wordpad

Hello world

gives this in notepad when i opend the richtext document in notepad

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\i\f0\fs20 hello\i0  world\par
}

I want to format text incode, and display the formated text in richtextbox, just like the example i did in wordpad above.

Is there a simple way to achieve this without manipulation the richtext format?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:46:06+00:00Added an answer on May 27, 2026 at 7:46 am

    You can use the RichTextBox control itself to manipulate the contents, like this:

    RichTextBox1.Text = "Hello world"  'Set the text
    RichTextBox1.SelStart = 0  'Select the first 5 characters
    RichTextBox1.SelLength = 5
    RichTextBox1.SelItalic = True 'Set the selection to italic
    

    However, you need to know exactly the position of the text you want to format, so if you want to generate a dynamic document, this is difficult. This seems designed for you to be able to put formatting buttons on your form and let the user format the text he is looking at by selecting portion of it and choose format.
    If you want to create dynamic documents you’ll probably want to use a library to generate the RTF document and display the results. There are some RTF libraries out there, both for ActiveX and .NET.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to format text in a label like this: username: some text from
I need to generate random text strings of a particular format. Would like some
I need to make custom text field which will format numeric values according to
I need to extract multiple text/dropdown list fields from an asp.net form and format
So I'm using Markdown to format text input from user: http://michelf.com/projects/php-markdown/ But I'm doing
Have a LINQ result, need to format it in plain text nicely to send
i have this text format: 8/27/2009 8:23:06 AM Thu Aug 27 12:42:22 2009 08/12/2009
is it possible to format text in rows in Listview using html? I need
I need to format an asp.net text box in such a way that it
I have a bunch of data in text format and I need to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.