JurkMonkey
Programmer
So switch statements make me mad sometimes.
It won't let me switch a GUI Component, not even its name.
I want to say:
switch(tabControl1.SelectedTab)
{
case tabPage1:
case tabPage2:
...
}
but it always looks for an int, char, byte, blah blah.
Does anyone have a good solution to this? I always end up hacking around it and now I'm finally tired of it.

It won't let me switch a GUI Component, not even its name.
I want to say:
switch(tabControl1.SelectedTab)
{
case tabPage1:
case tabPage2:
...
}
but it always looks for an int, char, byte, blah blah.
Does anyone have a good solution to this? I always end up hacking around it and now I'm finally tired of it.