﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Sea trying to change the RichTextBox does not work ?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 30 May 2026 21:26:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Sea trying to change the RichTextBox does not work ?</title><link>http://forum.strataframe.net/FindPost33445.aspx</link><description>&lt;div&gt;Drag and drop&amp;nbsp;RichTextBox&amp;nbsp;&amp;nbsp;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:&lt;div&gt;this.RichTextBox.TextChanged + = new System.EventHandler (this.RichTextBox_TextChanged);&lt;div&gt;before Form_Load&lt;div&gt;[CODE]&lt;div&gt;&lt;div&gt;public Form1()&lt;div&gt;{&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InitializeComponent();&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.RichTextBox.TextChanged + = new System.EventHandler (this.RichTextBox_TextChanged);&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;this.Load += new System.EventHandler(this.Form1_Load);&lt;div&gt;}&lt;br/&gt;&lt;br/&gt;&lt;div&gt;private void RichTextBox_TextChanged (object sender, System.EventArgs e)&lt;div&gt;{&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;do something ...&lt;div&gt;}&lt;div&gt;[/ CODE]&lt;div&gt;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.</description><pubDate>Thu, 23 Feb 2017 02:09:09 GMT</pubDate><dc:creator>Dong Trien Lam</dc:creator></item><item><title>RE: Sea trying to change the RichTextBox does not work ?</title><link>http://forum.strataframe.net/FindPost33447.aspx</link><description>this case I also tried it but do not be.&amp;nbsp;&lt;span style="color: rgb(47, 46, 46); font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; background-color: rgb(255, 255, 255);"&gt;I also tried it but not even me to code like this is not an error&lt;/span&gt;&lt;div style="outline: none 0px; color: rgb(47, 46, 46); font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; background-color: rgb(255, 255, 255);"&gt;[CODE] &amp;nbsp;&lt;div style="outline: none 0px; color: rgb(47, 46, 46); font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; background-color: rgb(255, 255, 255);"&gt;&lt;div id="pastingspan1" style="outline: none 0px;"&gt;public Form1()&lt;div style="outline: none 0px;"&gt;{&lt;div id="pastingspan1" style="outline: none 0px;"&gt;&lt;span class="Apple-tab-span" style="outline: none 0px;"&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;InitializeComponent(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;div style="outline: none 0px;"&gt;&lt;div id="pastingspan1" style="outline: none 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;this.rtPad.TextChanged += new System.EventHandler(this.rtPad_TextChanged);&lt;div id="pastingspan1" style="outline: none 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;this.rtPad.TextChanged += new System.EventHandler(this.rtPad_TextChanged);&lt;div style="outline: none 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;this.rtPad.TextChanged += new System.EventHandler(this.rtPad_TextChanged);&amp;nbsp;&lt;div style="outline: none 0px;"&gt;}&amp;nbsp;&lt;div style="outline: none 0px; color: rgb(47, 46, 46); font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; background-color: rgb(255, 255, 255);"&gt;[/CODE] &amp;nbsp;&lt;div style="outline: none 0px; color: rgb(47, 46, 46); font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; background-color: rgb(255, 255, 255);"&gt;rtPad is RichTextBox&amp;nbsp;</description><pubDate>Thu, 23 Feb 2017 02:09:09 GMT</pubDate><dc:creator>Dong Trien Lam</dc:creator></item><item><title>RE: Sea trying to change the RichTextBox does not work ?</title><link>http://forum.strataframe.net/FindPost33446.aspx</link><description>Did you try adding your event handler through the property sheet? &amp;nbsp;Select the RichTextBox, click the lightning bolt icon in the property sheet and double-click TextChanged. &amp;nbsp;This will add the event handler inside the InitializeComponent() method which is called before anything else.</description><pubDate>Wed, 22 Feb 2017 07:38:33 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>