In this post we learn about textbox decimal format. How do we express a number in points? As we add one or more sums after each number point. For this we need decimal format. This format is used in many accounting software. We have to put this especially in the Total Amount column. For this, we have to take three text boxes from the toolbox. And a number button is required. Then use the below coding as per video instruction.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim nnn1 As Double
Dim nnnn2 As Double
Double.TryParse(TextBox1.Text, nnn1)
Double.TryParse(TextBox2.Text, nnnn2)
Dim resultt As Double = nnn1 + nnnn2
TextBox3.Text = resultt
TextBox3.Text = Format(Val(TextBox3.Text), "0.0000")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim nnn1 As Double
Dim nnnn2 As Double
Double.TryParse("0.00005", nnn1)
Double.TryParse(TextBox1.Text, nnnn2)
Dim resultt As Double = nnn1 + nnnn2
TextBox1.Text = resultt
TextBox1.Text = Format(Val(TextBox1.Text), "0.00000")
End Sub