I am doing a hangman assignment , I need the application to display the correct amount of dashes"_" when player one enters his word. Here is my code so far. I was told I need to do a loop but I cannot figure it out for nothing.



'get a 5-letter word from the first player
Do
word = InputBox("Enter a word", "Hangman Game")
Loop Until word.Length = word.Length

'convert to uppercase
word = word.ToUpper()


Me.uiWordLabel.Text = "_"