2018년 5월 4일 금요일

C# Winform listBox 선택된 아이템 간단히 얻기

 this.textBox1.Text = (string)listBox1.SelectedItem ?? "not Selected";
string 은 오브젝트로 바꿔도됨.

0 comments:

댓글 쓰기