65.9K
CodeProject is changing. Read more.
Home

CheckedListBox - on Tab Control - Selection Disappears - Solution

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.43/5 (5 votes)

Mar 6, 2006

viewsIcon

26557

Checked List Boxes placed on Tab Pages, while toggling between tabs, the checked list box items are turned into unchecked items.

Introduction

This article provides an alternate solution to the bug found in the Microsoft Article for checked list box http://support.microsoft.com/default.aspx?scid=kb;en-us;833033.

Solution:

Step 1: Please add the checked list box control to a new user control.

Step 2: Move the checked list box to the 0,0 position of the user control

Step 3: Make the size of the checked list box to the size of the user control

Step 4: Make the anchor property of the checked list box to all the four sides

Step 5: Save the user control and use it in your forms instead of directly adding the check list box.