나는 이런 식으로 뭔가를하고 싶습니다.체크 박스 목록에서 항목 문자열 가져 오기
String s = "";
foreach (var item in checkedListBox1.Items)
{
s = checkedListBox1.Items(item).tostring;
// do something with the string
}
목록 상자에있는 항목의 string
을 갖고 싶습니다.
어떻게하면 되나요? 아마
foreach (var item in checkedListBox1.Items)
{
checkedListBox1.GetItemText(item);
}
아니라 가장 유용하지만, 그것을 위해 here is the MSDN :
내 테스트에서()를 잊어 버렸습니다 ... 죄송합니다. – tux007