The following program, in which the condition in the Do loop is "num <=7", displays the numbers from 1 through 7. (After the Do loop executes, the value of num will be 8.)
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
'Display the numbers from 1 to 7
Dim num AsInteger = 1
DoWhile num <= 7
lstNumbers.Items.Add(num)
num += 1 'Add 1 to the value of num
Loop
End Sub
[Run, and click the button. The following is displayed in the list box.]