hi all,

writing code in loop was always easy. thats an orthodox vb6 way to do that. when addrange and removerange methods are given, why not utilise the stuff?

and kylek, ObjectCollection and SelectedObjectCollection is not working. i tried it earlier also. It gives me error that " 'ObjectCollection' is a type in 'System.Windows.Forms.ListBox' and cannot be used as an expression"

any further ideas pls??

regards,

prakash