StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Sea trying to change the RichTextBox does not work ?
Sea trying to change the RichTextBox does not work ?
Post Reply
Like
1
Sea trying to change the RichTextBox does not work ?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Dong Trien Lam
Dong Trien Lam
posted 7 Years Ago
ANSWER
Topic Details
Share Topic
Group: Anonymous / Guest
Posts: 57,
Visits: 251
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.
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Sea trying to change the RichTextBox does not work ?
Dong Trien Lam
-
7 Years Ago
Did you try adding your event handler through the property sheet?...
StrataFrame Team
-
7 Years Ago
this case I also tried it but do not be. I also tried it but not even...
Dong Trien Lam
-
7 Years Ago
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search