1
Reply

TabControl on Seperate Form

Ask a question
spyrit

spyrit

19y
1.8k
1
Hi How can I change the tab page of a tabcontrol from a seperate form. Form1 has the button and Form2 has the tabcontrol that needs to be changed by Form1 I have tried: //on Form2 public void changetab2(); { tabControl1.SelectedTab = tabPage2; } //on Form1 private void menuItem1_Click(object sender, System.EventArgs e) { form2 Form2 = new Form2(); form2.changetab2(); } This unfortunately does not work. How can I fix this? Thanks in advance Regards ixodus

Answers (1)