Skip to content

TabControl wipes out SelectedItem/SelectedIndex when recycled. #17102

Closed Answered by cornerbowlsoftware
cornerbowlsoftware asked this question in Q&A
Discussion options

You must be logged in to vote

After reviewing the TabControl code I noticed the SelectionMode property. The following code worked around the issue for me:

    public class TabControlEx : TabControl
    {
        public TabControlEx()
        {
            SelectionMode = SelectionMode.Single;
        }
    }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cornerbowlsoftware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant