Dim value As String = textBox1.Text Dim num As Double If Double.TryParse(value, num) Then Dim percentage As Double = num / 100 textBox2.Text = percentage.ToString() Else ' cannot parse the given string to a double End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)