Use Convert.toInt32(txtPrice.Text). This is assuming VB.NET. Judging by the name "txtPrice", you really ...
stackoverflow.com