| 发表于:2007-04-17 20:12:121楼 得分:0 |
在窗体上先建一个command1,index设为0,窗体scalemode设定为pixel 再放一个command2,代码如下: private sub command2_click() dim i as integer dim tolnum as integer '按钮总数 dim n as integer '每行按钮数量 n = 4 '假设每行按钮数为4 for i = 1 to tolnum load command1(i) command1(i).visible = true command1(i).move 100 + (i mod n) * 100, 100 + int(i / n) * 50 '间距和行距自己设定 next i end sub | | |
|