hello there,
I got "ex = {"Input string was not in a correct format."} exception when I try to assign "SelectedIndex". my function is like:
...
{
try
}
cboProduct.SelectedIndex = 0; //GOT EXPCETION HERE.
And I can only get once for each debug....
Any idea on this?
I just tested our your code and it works fine for me (though I naturally had to define my own ProductName enum). The first thing I would do is to ensure that you have the latest hotfix, which can be found on the My Keys & Downloads page. If it still happens, you should submit an issue to Developer Support.
If you post the call stack, or possibly what else you're doing, I might be able to point you in the right direction as well.
-Matt