我的CheckListBox想在选中一项后在这项的后面会显示出他的值,能弄吗?怎么弄; 当我选中客户端1的时候就会给出相应的IP: 口客户端1  192.168.18.1 
口客户端2 
口客户端3 
口客户端4

解决方案 »

  1.   


            private int index = -1;
            private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)
            {
                if (checkedListBox1.SelectedIndex > -1 && checkedListBox1.SelectedIndex != index)
                {
                    index = checkedListBox1.SelectedIndex;
                    checkedListBox1.Items[checkedListBox1.SelectedIndex] = checkedListBox1.SelectedItem + "192.168.0.1";
                }
            }