i




 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sea trying to change the RichTextBox does not work ?
02-22-2017, 05:56 AM
Post: #1
Sea trying to change the RichTextBox does not work ?
Drag and drop RichTextBox into form in the Form_Load and his running assign content for events RichTextBox_TextChanged RichTextBox but not running although I have to add this line of code:
this.RichTextBox.TextChanged + = new System.EventHandler (this.RichTextBox_TextChanged);
before Form_Load
[CODE]
public Form1()
{
InitializeComponent();
this.RichTextBox.TextChanged + = new System.EventHandler (this.RichTextBox_TextChanged);
this.Load += new System.EventHandler(this.Form1_Load);
}

private void RichTextBox_TextChanged (object sender, System.EventArgs e)
{
do something ...
}
[/ CODE]
as an example of his small examples on running normally, but in the main program will not run, I do not know what is not right ? What advice can you help me fix this.


Quote


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Code of Decrease and increase for RichTextBox ? dongtrien 0 522 11-10-2016 09:48 AM
Last Post: dongtrien
  Practice work praveen 5 2,654 05-20-2011 01:34 PM
Last Post: praveen
  Why we need work flows? arti.porwal20@gmail.com 1 1,601 10-02-2010 01:31 AM
Last Post: raju



User(s) browsing this thread: 1 Guest(s)