hello
in the code TempBtn is changing
when Buttn (global) get new parameter
how can i save TempBtn ?
tank you
For i = 0 To 3
For j=0 To 3
TempX=Rnd(0,4)
TempY=Rnd(0,4)
TempBtn=Buttons(j,i)
Buttn=TempBtn
'Buttons(j,i)=Buttons(TempX,TempY)
Buttn.Top=Buttons(TempX,TempY).Top
Buttn.Left=Buttons(TempX,TempY).Left
Buttn=Buttons(TempX,TempY)
Buttn.Top=TempBtn.Top
Buttn.Left=TempBtn.Left
Buttons(TempX,TempY)=TempBtn
'Buttons(j,i).SetLayout (Buttons(j,i).Left,Buttons(j,i).Top ,Buttons(j,i).Width ,Buttons(j,i).Height )
Next
Next