Hi all
i'm a new in C#. I got a problem like this.
I want to obtain any selected item on ListBox. Those ListBox contain numerical value for example 5 , 10 , 12.5 , 30 ......
The problem appear when i want to convert the 12.5 into double, i alwayas got 125.0 not 12.5 it seLf. Here my code to obtain the value from the ListBox
arr variabel is an ArrayList.
foreach (object itemChecked in listBox1.CheckedItems) { arr.Add(Double.Parse(itemChecked.ToString())); } any sugesstion for me ?
thx all.
|