public class Form1
dim L1 as new Label()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
L1.text="为什么你出不来"
L1.Size = New Size(New Point(500, 500))
MsgBox("T:" & L1.Top & " L:" & L1.Left & " W:" & L1.Width & " H:" & L1.Height & " Vis:" & L1.Visible)
end sub
end class
运行后
弹出对话框显示 : T:0 L:0 W:500H:500 Vis:True 说明控件大小没问题
为什么不在Form1里出现L1呢?