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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. format of text Not appear as i save in file

format of text Not appear as i save in file

Scheduled Pinned Locked Moved C#
wpfhelp
2 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    Ahmed R El Bohoty
    wrote on last edited by
    #1

    :rose: hi , i have problem with richtextbox , i make simple Notepad where user write text with any format as he like but when i save text in file the format Not appear as i save (fonts,sizes and styles) and when i open file to be read in richtextBox with any format the fonts,sizes and styles appear like normal font... i want method keep the same format if i using lable or textbox or richtextbox

    K 1 Reply Last reply
    0
    • A Ahmed R El Bohoty

      :rose: hi , i have problem with richtextbox , i make simple Notepad where user write text with any format as he like but when i save text in file the format Not appear as i save (fonts,sizes and styles) and when i open file to be read in richtextBox with any format the fonts,sizes and styles appear like normal font... i want method keep the same format if i using lable or textbox or richtextbox

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      I think a way to do it is to always load the file into a richtextbox so that you have access to the font property. Then you could use that property to set the label or textbox to the proper font. You shouldn't have any issues using the savefile method from the richtextbox and then reading it back into a richtextbox. Hope that helps. Ben

      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