Windows Develop Bookmark and Share   
 index > Windows Forms Designer > RichTextBox not updating :-(
 

RichTextBox not updating :-(

Hi !
  I have a form. Theres a tree view and a rich text box. I have a handler for the AfterSelect event of the treeview. In this handler  write some test into the rich text box. But the new text is not appearing on the UI !!  But when I do a MessageBox(rtb.Text), it retrieves the text perfectly!

 Another peculiar thing is this:
  I directly enter some text into the RTB from the GUI. Then I say MessageBox(rtb.Text).....but it shows an empty string only :-(     HALP !!!!

Sinex
MigrationUser 1  Thursday, September 25, 2003 3:45 AM
I just created a little C# window application with one richtextbox and a button. In the Click eventhandler for the button I coded MessageBox.Show(richTextBox1.Text). I entered some text into the RichTextBox during runtime.

A messagebox pops up with the text of the richtextbox, just like it should when I click the button. So there is something else going wrong in your application (or in the framework, or on your pc etc. etc.). Maybe you also should try to create a new test application with just one richtextbox and a button and see what happens.

Regards,

Paul
MigrationUser 1  Sunday, October 19, 2003 3:48 PM

You can use google to search for other answers

Custom Search

More Threads

• Custom control desing problem
• How to use "Design Time" CollectionEditor for List <> type property of a User Control?
• Strange Behaviour of Combobox created as Custom by inheriting from Actual
• Windows Forms Team Needs Your Feedback!
• Change MenuStrip Color
• Saving blob field to the local system
• listview over picturebox
• RightToLeft Property in controls
• Need to make individual cells in DataGridView read-only programmatically.
• windows controls limit on a form??