You are on page 1of 1

ListBox1.

BeginUpdate()
Dim ctr As Integer
For ctr = 1 To 100 Step +1
ListBox1.Items.Add(ctr.ToString())
Next ctr
ListBox1.EndUpdate()

ListBox2.BeginUpdate()
Dim ctr As Integer
For ctr = 100 To 1 Step -1
ListBox2.Items.Add(ctr.ToString())
Next ctr
ListBox2.EndUpdate()

Dim rc As Integer
For rc = 5 To 100 Step +5
ListBox1.Items.Add(rc)
Next

Dim ctr As Integer


For ctr = 100 To 5 Step -5
ListBox1.Items.Add(ctr)
Next

Dim n As Integer
Dim r As Integer
n = 0
ListBox1.Items.Clear()
Do While n < 10
n = n + 1
r = 1 * n
ListBox1.Items.Add(1 & " x " & n & " = " & r)
Loop

Dim n As Integer
Dim r As Integer
n = 0
ListBox1.Items.Clear()
Do While n < 10
n = n + 1
r = 2 * n
ListBox1.Items.Add(2 & " x " & n & " = " & r)
Loop

You might also like