问:怎样用编程方式在窗体上创建一个label或textbox? 答:代码如下: 声明 Private WithEvents NewButton As ComandButton 1,添加 Set NewButton=Controls.Add("VB.CommandButton","cmdNew",Me) NewButton.Move 0,0,Width,Height NewButton.Visible=True 2,删除 Controls.Remove NewButton Set NewButton=Nothing
|