【C#学习】ComboBox

设置值

set1_com.Text = "COM1";

读取值

 serialPort1.PortName = set1_com.Text;
hint:
set1_com is a variable with combine to ComboBox.

选择item

scom.SelectedIndex = 0;

你可能感兴趣的:(编程技术,c#)