65.9K
CodeProject 正在变化。 阅读更多。
Home

CheckedListBox -在 Tab 控件上 -选择消失 -解决方案

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.43/5 (5投票s)

2006年3月6日

viewsIcon

26788

将 CheckedListBox 控件放置在选项卡页上时,在选项卡之间切换,CheckedListBox 中的选中项会变为未选中项。

引言

本文提供了一种替代方案,用于解决 Microsoft 文章 http://support.microsoft.com/default.aspx?scid=kb;en-us;833033 中发现的 CheckedListBox 错误。

解决方案

步骤 1:请将 CheckedListBox 控件添加到新的用户控件中。

步骤 2:将 CheckedListBox 移动到用户控件的 0,0 位置

步骤 3:将 CheckedListBox 的大小设置为用户控件的大小

步骤 4:将 CheckedListBox 的 Anchor 属性设置为所有四个边

步骤 5:保存用户控件,并在表单中使用它,而不是直接添加 CheckedListBox。

 

 

© . All rights reserved.