<pre lang="c#"><pre lang="sql">public string machineId { get { return comboBox1.SelectedItem.ToString(); } set { comboBox1.Text = value; } }</pre></pre> and in Form1; <pre lang="c#"><pre lang="c#"> Connect c = new Connect(); String machineid=c.machineId;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)