My textbox has a default value of “0,00”. My code clears the textbox when it is clicked.
Private Sub Pop1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Pop1.MouseDown
Pop1.Text = ""
End Sub
Now I want to make a code that puts default value (0,00) back if texbox is left blank when leaving the textbox – clicking on other item.
You can handle the Leave event of the Text box and set it back to the default if it’s blank.