C#中一个button关闭按钮代码详解
来源:百度知道 编辑:UC知道 时间:2024/05/06 04:20:19
C#中一个button关闭按钮代码详解
你是指关闭窗口?
webform:
<input type="button" value="关闭" onclick="javascript:window.opener=null;window.open('','_self');window.close();">
winform:
直接在单击事件中写:this.Visible=false;就OK了.
sd