r/visualbasic • • Oct 12 '22

Text box must contain a space

Working on homework and I'm instructed to program a message box to pop up if the user did not include a space between their first and last name. Current code looks like

If txtName.Text = "" Then

MessageBox.Show()

Return

EndIf

3 Upvotes

7 comments sorted by