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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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