how do I feed an rtf string to a richtextbox control

后端 未结 2 1874
时光说笑
时光说笑 2021-01-18 05:19

I have a string of richtext characters/tokens that I would like to feed to a richtextbox in code.

string rt  = @\" {\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang         


        
2条回答
  •  轮回少年
    2021-01-18 05:34

    Rich textbox has a property named Rtf. Set that property to your string value. Also, your string has an extra space as the first character. I had to remove that before I saw your Hello World.

提交回复
热议问题