Home All Groups Group Topic Archive Search About
Author
2 May 2007 2:43 PM
AVL
I've used a checkboxlist control on my form..
i'm populating values dynamically at runtime to this list..
but when i do it, the checkboxes so added are remaining unchecked...
but I want a newly added item to be checked by default...

how do i do it? any good samples...
Author
5 May 2007 10:23 AM
G Himangi
After you add the items in the checkedlistbox, use the SetCheckState or
SetItemCheckState methods to check the item.

---------
- G Himangi,   Sky Software       http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------


Show quoteHide quote
"AVL" <A**@discussions.microsoft.com> wrote in message
news:E6C6173C-B24D-437E-97A9-F41625A3D54D@microsoft.com...
> I've used a checkboxlist control on my form..
> i'm populating values dynamically at runtime to this list..
> but when i do it, the checkboxes so added are remaining unchecked...
> but I want a newly added item to be checked by default...
>
> how do i do it? any good samples...

Bookmark and Share