こんなことをしたいです。
String s = "";
foreach (var item in checkedListBox1.Items)
{
s = checkedListBox1.Items(item).tostring;
// do something with the string
}
string
リストボックスにあるアイテムのを欲しいのですが。
どうすればそれを実行できますか?
こんなことをしたいです。
String s = "";
foreach (var item in checkedListBox1.Items)
{
s = checkedListBox1.Items(item).tostring;
// do something with the string
}
string
リストボックスにあるアイテムのを欲しいのですが。
どうすればそれを実行できますか?
まだ試していませんが、うまくいくと思います。
string s = "";
foreach (var item in checkedListBox1.Items)
{
s = item.ToString();
// do something with the string
}
string s = "";
foreach (string item in checkedListBox1.Items)
{
s = item;
// do something with the string
}
私はあなたが探しているのはこれだと信じています:
foreach (var item in checkedListBox1.Items)
{
checkedListBox1.GetItemText(item);
}
おそらく最も有用ではありませんが、ここにそのためのMSDNがあります。