RadRichtextbox.text is not working.

2 posts, 0 answers
  1. Karthik
    Karthik avatar
    7 posts
    Member since:
    Oct 2012

    Posted 06 Nov 2012 Link to this post

    Hi Telerik,
    I trying to update some text to RadRichTextBox but it's work. It showing me a blank screen. If i use windows/winform richtextbox it works.

    What shouild i do???  Thank you.

    exBuilder.Clear();
                    exBuilder.Append(exception.Message + Environment.NewLine);
     
                    RadRichTextBox richTextBox = new RadRichTextBox();
                    //RichTextBox richTextBox = new RichTextBox();
                    richTextBox.ThemeName = "Office2007Black";
     
                    richTextBox.Text =  line + ":" + exBuilder.ToString();
                    richTextBox.Dock = DockStyle.Fill;
                    richTextBox.IsReadOnly = true;
                    //richTextBox.ReadOnly = true;
                    richTextBox.ForeColor = Color.Red;
  2. Karthik
    Karthik avatar
    7 posts
    Member since:
    Oct 2012

    Posted 06 Nov 2012 Link to this post

    Sorry Telerik, found solution:  richTextBox.Insert(line + ":" + exBuilder);
    http://www.telerik.com/help/silverlight/radrichtextbox-frequently-asked-questions.html
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top