spyrit

spyrit

  • NA
  • 1
  • 0

TabControl on Seperate Form

Feb 8 2005 6:34 AM
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)