Im taking a VB class and cant figure out how to get it to replace more than one character this is my code.



VB Code:
  1. Option Explicit On
  2. Option Strict On
  3.  
  4. Public Class JacobsonForm
  5.     Inherits System.Windows.Forms.Form
  6.  
  7.     Private Sub uiExitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles uiExitButton.Click
  8.         'ends the application
  9.         Me.Close()
  10.     End Sub
  11.  
  12.     Private Sub uiDisplayButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles uiDisplayButton.Click
  13.         Dim oldpass As String = Me.uiOldPassTextBox.Text
  14.         Dim oldpassnumber As Double
  15.         Dim newpass As String
  16.         Dim i As Integer = 0
  17.  
  18.  
  19.         oldpassnumber = oldpass.Length
  20.         If oldpassnumber >= 5 AndAlso oldpassnumber < 8 Then
  21.  
  22.             Do Until i = oldpassnumber
  23.                 newpass = oldpass.Replace("A", "X")
  24.                 newpass = oldpass.Replace("E", "X")
  25.                 newpass = oldpass.Replace("I", "X")
  26.                 newpass = oldpass.Replace("O", "X")
  27.                 newpass = oldpass.Replace("U", "X")
  28.                 i = i + 1
  29.             Loop
  30.         End If
  31.  
  32.         Me.uiNewPassLabel.Text = newpass
  33.  
  34.  
  35.  
  36.  
  37.     End Sub
  38. End Class


what am i missing i tried to get it to loop, but it only does the U, how can i get to do them all?