Adding text to RichTextBox in form from another class
-
Hi everyone how would i add text to a rich text box named 'richTextBox1' located in Form1 with the namespace "winApp1"... i am adding text from a function inside a different class like this:
winApp1.Form1.richTextBox1.Text
but all i get is:'winApp1.Form1.richTextBox1' is inaccessible due to its protection level
how can i remove the protection :confused: Thanks in advanced Roman -
Hi everyone how would i add text to a rich text box named 'richTextBox1' located in Form1 with the namespace "winApp1"... i am adding text from a function inside a different class like this:
winApp1.Form1.richTextBox1.Text
but all i get is:'winApp1.Form1.richTextBox1' is inaccessible due to its protection level
how can i remove the protection :confused: Thanks in advanced RomanDeclare richTextBox1 as public or internal.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Taking the Congressional Oath on the Bible The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Declare richTextBox1 as public or internal.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Taking the Congressional Oath on the Bible The apostle Paul, modernly speaking: Epistles of Paul Judah Himango