Im fairly new to C#, I have a parent form (form1) with a tabcontrol. the first tab is static and i have some stuff in there. After that i can dinamicaly add embedded forms (all the same form2) on the tab with a button. The newly created forms each have a single textbox from which i want to retrieve the textboxname.Text and write it on a textbox outside the tabcontrol in form1..
in form2 i added public TextBox TextBox1 { get { return textBox1; } } and in form1 the private Form1 otherForm; ...
but i dont know where to go from there i think i have to do a foreach (TabPage tab in tabControl1.TabPages) but im not sure ^^
findcontrolsbyname
and then iterate through the list and then get its values and display in the static page. – Saravanan