I'm having a problem with the character count in a textbox.
If e.KeyChar = ChrW(13) Then tsCount.Text = "Character Count: " & tbText.Text.Count - 2
Basically I want to prevent the character count going up by 2 when the user creates a new line in the textbox. I've tried that code above, but didnt really work.
Also, in my program the user cannot create a new line without having any text in the textbox by using the code below:
If tbText.Text = String.Empty And e.KeyChar = ChrW(13) Then e.Handled = True
tsCount is a label, and tbText is my textbox. Is it possible to prevent it by going up by 2?