string str = "";
if( !(listBox1.SelectedIndex>0))
{
MessageBox.Show("请选择需要发料的MC_ID");
return;
}
str = listBox1.SelectedItems[0].ToString();//获取选中的内容
MessageBox.Show(str);
string str = "";
if( !(listBox1.SelectedIndex>0))
{
MessageBox.Show("请选择需要发料的MC_ID");
return;
}
str = listBox1.SelectedItems[0].ToString();//获取选中的内容
MessageBox.Show(str);
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。