Edit TextBox from another class

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Hello All,
Sorry for the newbie question, but here goes:
I have a form named MainForm (namespace=MyFormProject,
class=MainForm). In that form is a textbox tbOutput.
This is a multi-line textbox that I want to send values to.
I then have another function named ReadData
(namespace=OtherName, class=OtherClass). I have a while
loop that reads data and I want this function to be able
to AppendText to the tbOutput textbox. I can't seem to
find a valid way to do this.
Any help would be greatly appreciated.
Thanks in advance.
-Tim
 
Hi,

I think you can do it by passing a reference of the main form to the child
class and use that reference to do the modification to the textbox.

Make sure to set the Textbox Modifiers property to Internal or public

Nirosh.
 
Back
Top