You might want to actually describe the problem. Just posting a line of code as the problem doesn't really say anything about what you think the problem is.
Also, that line of code itself IS a problem because it's so badly written, along with the entire method it's in.
It looks like you're trying to generate a random password using random indexes into an array of characters, correct?
A method should do exactly ONE thing. In this case, generate a string made up of random characters. It should NOT do anything with a textbox or preprend/append any characters other than the ones it's picking to the string.
' Assume "pool" is an array of characters accessible by this method.
Public Function GeneratePasswordString(length As Integer) As String
If length < 0 Then
Throw New ArgumentException
End If
Dim RNG As New Random
Dim buffer As New StringBuilder
Dim index As Integer
For count As Integer = 1 to length
index = RNG.Next(0, pool.length)
buffer.Append(pool(index))
Next
Return buffer.ToString
End Function