Skip to main content
gamedev.net
🔒 Locked

Checked Listboxes in VB

Started by 33462971 3 replies 500+ views
Original Post
33462971
33462971
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.
medovids
medovids
Mycheckbox.value=checked


That is all!!!!
33462971
33462971
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.
Colin Jeanne
Colin Jeanne
If you have Listbox list then you can check/set the selected status with:

list.Selected(index_number )

Invader X
Invader''s Realm
33462971
33462971
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.