2021
01-13
01-13
C# 使用Winform 获取下拉框 选中的值
我就废话不多说了,大家还是直接看代码吧~stringPrintName=cmbPrinter.SelectedIndex.ToString();PrintName=cmbPrinter.SelectedItem.ToString();//if(cmbPrinter.SelectedIndex!=0){}stringPrintName="";PrintName=cmbPrinter.SelectedItem.ToString();//"GprinterGP-1124T0"varss0=cmbPrinter.Text;//GprinterGP-1124T0"varss=cmbPrinter.SelectedIndex.ToString();//0//循环下拉框stringp...
继续阅读 >