标签页控件
有什么方法可以删除我在运行时添加的选项卡页上的控件吗?请记住只删除运行时添加的控件(C#)?
多谢 :)
Is there any way to delete the controls on a tab-page that i have added on runtime ? Plz remember only to delete runtime added controls (C#) ?
Thanks a lot :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
添加具有唯一名称的控件,并随时删除控件。
例如:
注意:控件名称
txtName
应该是唯一的Add controls with unique name and delete controls whenever you want.
Eg:
NOTE:Control name
txtName
should be unique您需要记住未在运行时添加的控件的名称,或者“标记”在运行时添加的控件。例如,通过将 TAG 属性设置为任意值。然后您可以稍后删除具有特定 TAG 属性的控件。
You need to either remember the name of the controls that were not added at runtime or you "flag" those that are added at runtime. E.g. by setting the TAG property with an arbitrary value. Then you can delete the controls that have a specific TAG property later.