01.
For
i = 1
To
numRowDraw
02.
03.
For
j = 1
To
numColumnDraw
04.
05.
06.
btnArray(i) =
New
System.Windows.Forms.Button
07.
btnArray(i).Parent = pnel
08.
btnArray(i).Text =
""
09.
btnArray(i).Location =
New
System.Drawing.Point(x, y)
10.
btnArray(i).Size =
New
System.Drawing.Size(3 * 10, 13 * 10)
11.
btnArray(i).BackColor = Color.White
12.
x += 3 * 10
13.
AddHandler
btnArray(i).Click,
AddressOf
Me
.HandleDynamicButtonClick
14.
15.
Next
16.
17.
x = 0
18.
y += 13 * 10
19.
20.
Next