求助:如何使按钮显示在我想放的位置上哩?
我在窗体下部放了了两个按钮、一个picture控件、一个label控件,运行一下下面的程序:
Private Sub Form_Load()
Picture1.Move 0, 0
Picture1.Height = (Label1(0).Height + 5) * 10 + 3
Picture1.Width = (Label1(0).Width + 5) * 10 + 3
Me.Height = Picture1.Height + 900
Me.Width = Picture1.Width + 80
Label1(0).Visible = False
For n = 1 To 100
i = (n - 1) \ 10: j = (n - 1) Mod 10: Load Label1(n)
With Label1(n)
.Left = 5 + j * Label1(0).Width
.Top = 5 + i + Label1(0).Height
.Visible = True
.Caption = n
End With
Next
End Sub
我本来想让按钮正好放在picture控件下的,现在因为窗体大小的改变它们的位置就不对了!得拉大窗体才看到了那两个按钮家伙~如何写程序让它们随窗体的变小也能放在原有的位置上呢?