Firstly why did you copy your whole post. You only needed the random bit.

Secondly, this isn't an exact thing of what you should do but perhaps try something like:

(assuming that your talking about enabling a button called button one and a label called count)
r as integer
r = 1 to 100
If button1.enabled = true then
button(r).enabled = true
end if

thirdly, the counter thing is like what I've already told you, something along the lines of
button1_click()
count.caption = count.caption + 1

110359