Page 1 of 1

CheckedListBox item

Posted: Wed Apr 25, 2012 4:51 pm
by srdjan.bogojevic
Hi All,

I've used a CheckedListBox control in application. I read all items in the collection through: IList<CheckBox> items = ....FindChildren<CheckBox>. But, this only works when the number of items set is not large, or more preciselym, when the scroll bar does not appear in the listbox. If you have a large number of items set in a listbox (scroll bar appears) FindChildren returns 0 items, although they exist.

Do I use a good way, or can I get help..

Thanks in advance
Srdjan

Re: CheckedListBox item

Posted: Thu Apr 26, 2012 8:23 am
by srdjan.bogojevic
In the meantime I solved the problem. The answer is: use FindDescendants<CheckBox> () instead of
FindChildren<CheckBox>()

Re: CheckedListBox item

Posted: Thu Apr 26, 2012 8:50 am
by Support Team
srdjan.bogojevic wrote:In the meantime I solved the problem. The answer is: use FindDescendants<CheckBox> () instead of FindChildren<CheckBox>()
... or use the Find<CheckBox>() method using a RanoreXPath created using RanorexSpy.
Great you did it on your own! :D

Regards,
Alex
Ranorex Team