Checked Listboxes in VB

Started by
3 comments, last by 33462971 22 years, 3 months ago
I''m making a program that uses checked listboxes and I want it read a file, and depending on what it reads, check certain items on the list. My problem is I can''t figure how to make it check the items, according to everything I''ve looked at (including the MSDN Library), it checks the box when you click on the checkbox....gee, really helpful. I know it shouldn''t be hard at all, but I can''t figure it out. Anyone know how to do it? \/\/ÏÑ ÎF ¥ØÙ ÇÅ|\|, LÔ§Ë |F ¥OÙ /\/\Ú$T, ßUT @L\/\/ª¥§ ©HÊÅT.
Advertisement
Mycheckbox.value=checked


That is all!!!!
I''m talking about a listbox with checkbox style, that would only work a plain checkbox.

\/\/ÏÑ ÎF ¥ØÙ ÇÅ|\|, LÔ§Ë |F ¥OÙ /\/\Ú$T, ßUT @L\/\/ª¥§ ©HÊÅT.
If you have Listbox list then you can check/set the selected status with:

list.Selected(index_number )

Invader X
Invader''s Realm
That''s it, thank you Invader. I thought that was the same as setting the ListIndex, should''ve figured they wouldn''t have 2 properties do the exact same thing, lol.

\/\/ÏÑ ÎF ¥ØÙ ÇÅ|\|, LÔ§Ë |F ¥OÙ /\/\Ú$T, ßUT @L\/\/ª¥§ ©HÊÅT.

This topic is closed to new replies.

Advertisement