I'm running the following code.
int count = tabControl.Items.Count;
int bount = tabControl.SelectedIndex;
tabControl.SelectedIndex = 0;
int dount = tabControl.SelectedIndex;
From there, I learn that I have three tabs and that I'm currently standing on the last one (number 2). After I've set the new value, I learn that the selected index's value is zero.
But the GUI seems to disregard it and stays unchanged.
Does it have to do with the fact that the even comes from a data grid object? Or did I use incorrect syntax?