Hi i have a conflict with a string
i want some words of a string to make lowercase
shal i have as string
Valkenburg Aan De Geul
But i want it to make it as
Valkenburg aan de Geul
the folowing code dos not work ang gives a conflict
If TextBox1.Text.Contains("Aan De") = True Then
Dim wordString As String = TextBox1.Text
TextBox1.Text = Replace(wordString, "Aan De", "aan de")
ElseIf TextBox1.Text.Contains("Aan De") = False Then
Dim x As TextBox = CType(sender, TextBox)
Dim sel_Start As Integer
Dim sel_Length As Integer
sel_Start = x.SelectionStart
sel_Length = x.SelectionLength
x.Text = StrConv(x.Text, VbStrConv.ProperCase)
x.SelectionStart = sel_Start
x.SelectionLength = sel_Length
End If
Can someone help me with some code i don't kmow how to fix it
Thanks in advice John