Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. RTF file in Rich Text BOx

RTF file in Rich Text BOx

Scheduled Pinned Locked Moved Windows Forms
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raushan_9
    wrote on last edited by
    #1

    Hello freind, I have taken a rich textbox in a form and i want to show all the content of RTF file. and also if any where in the file any word is bold then i want to add tag bold of any bold words just like HELLO so please suggest me how i will add tag starting of bold word and in end . Thanks in advance..

    T 1 Reply Last reply
    0
    • R raushan_9

      Hello freind, I have taken a rich textbox in a form and i want to show all the content of RTF file. and also if any where in the file any word is bold then i want to add tag bold of any bold words just like HELLO so please suggest me how i will add tag starting of bold word and in end . Thanks in advance..

      T Offline
      T Offline
      Thomas Stockwell
      wrote on last edited by
      #2

      You would have to first load the RTF file into the richtextbox. Then you will have to write code that will loop through all of the text searching for the words to bold. You are going to set the selection start and end points and then bold them.

      Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups