c# - Array to CheckboxList and again to array -


hi have little problem. items array

this.headerfields = new string[]{ "proj_id", "model", "esn", "location", "datatype", "testtype", "test", "trrdg", "rdg", "testdate", "testtime" }; 

and set them checkedlistbox line of code

checkedlstboxheaderfield.items.addrange(settings.headerfields); controls.add(checkedlstboxheaderfield); 

that works. when open winforms want check of values , ok button go nextstep , when reopen form want see items checked , unchecked. try

settings.headerfields = checkedlstboxheaderfield.checkeditems.oftype<string>().toarray(); 

but these line of code became checked items. please help....

settings.headerfields = checkedlstboxheaderfield.items.oftype<string>().toarray(); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -