I want to read the last character entered in a textbox and if the last character is not "/" it will add one.
I searched the internet and even tried using "textBox.EndsWith()"but it didnt work, it only add 3 more "/" to the end of the string.
Thanx for any assistance in advance
My current code:
If txtMain.Text.EndsWith(".") Then txtMain.Text = txtMain.Text.Insert(txtMain.Text.Length - 1, 1) Else strMainPath = txtMain.Text End If