# Re: 请问: VB要如何于 runtime 时 增加 如 Button, text, .... 等object !?

Posted by j on August 13, 1999 at 17:34:51:

In Reply to: 请问: VB要如何于 runtime 时 增加 如 Button, text, .... 等object !? posted by Albert on August 13, 1999 at 16:36:39:

:
: @@

以下程式只能在VB6新增控制项其他小弟就不清楚了

Dim TextNew As TextBox

Private Sub Form_Load()
Set TextNew = Form1.Controls.Add("VB.TextBox", "TextNew")
TextNew.Visible = True
End Sub

Follow Ups:

- 多谢指教!!! Albert 18:11:10 8/13/99 (0)