G
Guest
Hi
I want to add multiple items (about 20) to a checked list box control at run time, but do not know how to use the AddRange method of the Items collection. Currently, I am using the Add method, which works fine, but since I'm dealing with 20 items, this means I have 20 lines of code because the Add method is used once for every item
Could somebody please clarify the syntax of the AddRange method? I know you're supposed to use braces "{ }", but I'm just not sure where they go, and IntelliSense has got me all confused
Thanks and Best Regards
David Morris
I want to add multiple items (about 20) to a checked list box control at run time, but do not know how to use the AddRange method of the Items collection. Currently, I am using the Add method, which works fine, but since I'm dealing with 20 items, this means I have 20 lines of code because the Add method is used once for every item
Could somebody please clarify the syntax of the AddRange method? I know you're supposed to use braces "{ }", but I'm just not sure where they go, and IntelliSense has got me all confused
Thanks and Best Regards
David Morris