Hi
I have a combo box that my application uses to select an item for a
regression function.
I would like to convert the selected item to a string value and use this
value later in my code.
I have used
private string charVal;
public string CharVal
{
set
{charVal = tbCharVal.SelectedItem.ToString();}
get
{return charVal;}
}
But i get an error 'C:\eg_1\eg_3\Reg1.cs(38): Cannot implicitly convert type
'object' to 'string'' . Could someone show me how to convert the
selectedItem to a string value?
thanks