HI everyone! I have a question. This is my first post and need help with figuring out this bug. I am in college and learning Visual Basic 2010. We were given this and for some reason I can't get this to work right. Here is the whole thing:
The following code should display three rows of percent signs in the msgLabel. The first row should contain one percent sign, the second row should contain two percent signs, and the third row should contain three percent signs. However, the code is not working correctly.
If anyone could help me I would be so appreciative!!!!!!!
The following code should display three rows of percent signs in the msgLabel. The first row should contain one percent sign, the second row should contain two percent signs, and the third row should contain three percent signs. However, the code is not working correctly.
For row As Integer = 1 To 3 For percent As Integer = 1 To 3 msgLabel.Text = msgLabel.Text & "%" Next percent msgLabel.Text = msgLabel.Text & ControlChars.NewLine Next row
If anyone could help me I would be so appreciative!!!!!!!
Last edited by a moderator: