VB Code:
Dim DefaultTop As Integer Dim Rows As Integer, Cols As Integer DefaultTop = cmdBlock(0).Top Rows = 4 Cols = 5 For l = 1 To (Rows * Cols) - 1 If l > cmdBlock.UBound Then Call Load(cmdBlock(l)) cmdBlock(l).Caption = "Some Title " & l cmdBlock(l).Visible = True cmdBlock(l).Top = (cmdBlock(l - 1).Top + cmdBlock(l - 1).Height + 18) cmdBlock(l).Left = cmdBlock(l - 1).Left If (l Mod Rows) = 0 Then cmdBlock(l).Top = DefaultTop cmdBlock(l).Left = Int(l / 4) * (cmdBlock(l).Width + 10) + 8 End If Next l
non ?




Reply With Quote