如何动态删除按钮 [英] how to remove buttons dynamically

查看:73
本文介绍了如何动态删除按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我如何动态删除按钮?

hi ,

how can i remove buttons dynamically?

推荐答案

尝试使用此URL ........... 动态添加和删除用户控件 [
Try this url....................Dynamically add and remove user controls[^]


您可以将按钮设置为visible=false
喜欢
hi u can set button as visible=false
like
button1.Visible = false;

,如果您要设置该位置,则可以使用X和Y坐标值放置其他控件.

and if u want set that place any other control using of X and Y coordinate values.


要动态隐藏按钮时.意味着您正在应用任何条件,并且要取消按钮的结果.
您不能删除只是隐藏按钮.在特定事件中,您可以使用id调用按钮,并设置可见的false,例如jasminpatel在回答中所说的.有关更多详细信息,请参见:
http://msdn.microsoft.com/zh-CN/library/microsoft.office.tools.excel.controls.button.visible%28v=vs.80%29.aspx [
when you want to hide the button dynamically. Means is there any condition that you are applying and on the result of that you want to remove the button.
you cant remove just hide the button. on particular event you can call the button using id and set visible false like jasminpatel has said in the answer. for more details go through this :
http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.controls.button.visible%28v=vs.80%29.aspx[^]


这篇关于如何动态删除按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆