Ok i found out it is CaseSensitive any work around?
and why will it only od the first item?(sry noomb at loops and richtextboxes)
[VB]
If sColorcode = 1 Then
Dim start As Integer = 0
Do
start = txtconf.Text.IndexOf("AddIcon", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddIcon")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddIconByEncoding", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddIconByEncoding")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddIconByType", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddIconByType")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AcceptMutex", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AcceptMutex")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AcceptPathInfo", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AcceptPathInfo")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AcceptFileName", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AcceptFileName")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("Action", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("Action")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddAlt", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddAlt")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddAltByEncoding", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddAltByEncoding")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddAltByType", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddAltByType")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddCharset", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddCharset")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddDefaultCharset", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddDefaultCharset")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddDescription", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddDescription")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddEncoding", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddEncoding")
txtconf.SelectionColor = Color.RoyalBlue
start += 8
Loop
Do
start = txtconf.Text.IndexOf("AddHandler", start)
If start = -1 Then Return if not found the value will be -1
txtconf.SelectionStart = start
txtconf.SelectionLength = Len("AddHandler")
txtconf.SelectionColor = Color.OrangeRed
start += 8
Loop
End If
[/VB]