Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
Dim lbl As WinForm.Label
lbl = e.Form.CreateControl("lable1", ControlTypeEnum.Label)
lbl.Text = "Foxtable"
lbl.Left = 100
lbl.Top = 100
e.Form.AddControl(lbl)
这个代码是动态增加一个标签。我现在想知道,既然可以增加一个控件,删除这个控件是应该怎样呢?
if e.Form.ExistControl("lable1")= true
e.Form.RemoveControl("lable1")
end if