What i am trying to do is make a mine sweeper type game. and i need to know when the commandbutton is clicked
my code is somthing like this:
I know I cannot use the "WithEvents" and an array but is there anything else i can do?Code:private WithEvents CB as CommandButton Private Sub Form_Load() ReDim CB(63) For i = 0 to 63 CB(i) = (Controls.Add "VB.CommandButton","Command1") CB(i).Visible = true CB(i).Move 'exc... next end sub
maybe somthing like this?:
Dim (CB & i)
if CB & i = true
do you see what i mean make many vars. and at the end make a number?
I hope i explained well![]()
THANKS
NATHAN




Reply With Quote