S
speed780
Guest
Hello,
I am currently developing a winforms application. I have a Form1 where I put a richtextbox.
I would like to display text in this richtextbox from anywhere in my application code.
For example, in the richTextBox of Form1, I would like to be able to write in this richTextBox from another class called Process.
I thought to set the public field for richTextBox in the designer of Form1 and directly assign a text in this richTextBox in the Process class, but it does not work.
Would you have a simple code example to write to a richTextBox from another class (not Form), please?
Thanks.
Continue reading...
I am currently developing a winforms application. I have a Form1 where I put a richtextbox.
I would like to display text in this richtextbox from anywhere in my application code.
For example, in the richTextBox of Form1, I would like to be able to write in this richTextBox from another class called Process.
I thought to set the public field for richTextBox in the designer of Form1 and directly assign a text in this richTextBox in the Process class, but it does not work.
Would you have a simple code example to write to a richTextBox from another class (not Form), please?
Thanks.
Continue reading...