Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

CheckedListBox - on Tab Control - Selection Disappears - Solution

0.00/5 (No votes)
6 Mar 2006 1  
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.

 

 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here