如何动态删除几个控件? [英] how can I remove dynamically several controls?
本文介绍了如何动态删除几个控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
如何从Winform中删除所有PictureBox控件
从后面的代码中(因此,每次在组合框中选择某个项目时,较旧的PictureBox控件将被删除,而新的PictureBox控件将出现-我知道该怎么做的第二部分)
thanx!
Hi
how can I remove all picturebox controls from my winform
from code behind (so every time some one select item in a combo box the older picturebox controls will be removed and the new one''s will appear- the 2nd part I know how to do)
thanx!
推荐答案
请参阅此CP文章以递归禁用页面中的控件
递归禁用子控件 [
Refer this CP article to recursively disable the controls from the page
Disable Child Controls Recursively[^]
这篇关于如何动态删除几个控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文