I was wondering if someone could please look at this for me? I am trying to remove vowels from the user input and displaying them in the edited label. This is what I have so far but I really don't know which way to go now.
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim textBox1 As String
Dim searchFor As String = ("aeiou")
Dim newList As String
Dim vowelList As New List(Of String)
vowelList.Add("a")
vowelList.Add("e")
vowelList.Add("i")
vowelList.Add("o")
vowelList.Add("u")
'If searchFor = True Then vowelList.Add()
Dim count As Integer = myString.Length - 1
Dim y As Integer = 0
If vowelList.Contains(vowelList(y)) = True Then
newList = newList.Remove(y, 1)
lblEdited = newList
y -= 1
End If
y += 1
End Sub
'Private Function y() As Integer
' Throw New NotImplementedException
'End Function
End Class
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim textBox1 As String
Dim searchFor As String = ("aeiou")
Dim newList As String
Dim vowelList As New List(Of String)
vowelList.Add("a")
vowelList.Add("e")
vowelList.Add("i")
vowelList.Add("o")
vowelList.Add("u")
'If searchFor = True Then vowelList.Add()
Dim count As Integer = myString.Length - 1
Dim y As Integer = 0
If vowelList.Contains(vowelList(y)) = True Then
newList = newList.Remove(y, 1)
lblEdited = newList
y -= 1
End If
y += 1
End Sub
'Private Function y() As Integer
' Throw New NotImplementedException
'End Function
End Class