2
I am creating a Windowsform template and I am using a Tabcontrol and would like to create an event that changes the tab that is being displayed.
I was able to change the content displayed with this.tabForm.TabPages["nomeTab"].Show();
or tabPage1.Show();
, the two options worked, but only the content that is being displayed is changed, the tab selected remains the same.
How do I solve this problem?
I usually change the tabcontrol selectedindex, e.g.: tabControl.Selectedindex = 1;
– Lucas Miranda
I did it that way and it worked. Thank you Lucas.
– Vinícius Rodrigues
Good evening, Vinicius, answer your question and mark it as right to organize the community
– Lucas Miranda