How to access a dynamic component from another method?

  • Thread starter Thread starter MojiPPT
  • Start date Start date
M

MojiPPT

Guest
Hi! So I have a dynamically generated component from one void:

RichTextBox rtb = new RichTextBox();

I need to access the text in rtb in a label click event. I can't make it a static void because it references a tabControl multiple times. Is there a way to access rtb's properties?
I also can't just put it in no method because it needs to be there, otherwise it would break the tab system.

Continue reading...
 
Back
Top