weird bug - not sure what I am doing wrong
dragged a ColorDialog from the toolbox to the form...

I have a TabControl for my form. Tab 0 and Tab 1, as long as I am on selectIndex 0, if I open my colorDialog it works fine. If I switch to selectedIndex 1 and open my colorDialog, program crashes. I've done this too..

Code:
        private void buttonSetColor_Click(object sender, EventArgs e)
        {
            tabControl.SelectedIndex = 0;
            colorDialog.ShowDialog();
        }
works great.. but for this situation I don't want to have to make it switch tabs just because I want to bring up the colorDialog. This code > if selectedIndex 1 - crashes my form

Code:
        private void buttonSetColor_Click(object sender, EventArgs e)
        {
            colorDialog.ShowDialog();
        }
weird?!?