(04-17-2011, 12:01 AM)Infinity Wrote: Only thing i'm getting now is errors when I have only spaces in my code, and text inputs that have only one letter, and are not part of the string array for the vowels. Otherwise I have a fully functional PigLatin translator..
Use simple validation for the spaces.
if(textBox1.Text.Trim() == String.Empty)
return true; //If there is only spaces or nothing at all it will return true
Although I use this in java not sure if it works in vb.
Should be something similar.
If TextBox1.Text.Trim() = "" Then
MessageBox.Show("Please enter text to translate")
End If