thielj / MetroFramework

Metro UI of Windows 8 for .NET Windows Forms applications
http://thielj.github.io/MetroFramework
Other
411 stars 224 forks source link

Can't select tab programatically in MetroTabControl #107

Open datacom-devs opened 6 years ago

datacom-devs commented 6 years ago

Hi,

I tried:

MTC.TabPages(1).Select() MTC.SelectedIndex = 1 MTC.SelectTab(1) MTC.SelectedTab = MTP <--(Tabpage control) MTC.TabPages(1).Focus()

None of these work, any ideas?

Regards

pimpace commented 6 years ago

@GeorgeInterface metroTabControl1.SelectedTab = metroTabPage1;

This is working for me.