Lula.Jin 发表于 2019-7-25 09:19
在usercontrol中使用this.close关闭弹窗
Lula.Jin 发表于 2019-8-21 17:51
那你是怎么写的呢?
Lula.Jin 发表于 2019-8-22 09:23
可以试试 this.Form.Show(_s,(obj,args)=>{
this.close();
});
csfeixia 发表于 2019-8-22 10:01
是这样,这个 右键菜单,仅是一个跳板,在我选择右键菜单 中的一个操作后,应该是要直接关闭了,而不应该 ...
Lula.Jin 发表于 2019-8-22 10:13
但是你先执行了this.close,再执行show,usercontrol是不会关闭的
Lula.Jin 发表于 2019-8-23 11:54
目前是show的级别高于close的级别,因此如要关闭usercontrol,建议写在form.show的回调中
this.Form.Sho ...
Lula.Jin 发表于 2019-8-26 10:47
你的新窗口也是usercontrol?
csfeixia 发表于 2019-8-23 23:39
在右键菜单(自定义控件中) this.Form.Show(_s,(obj,args)=>
{
this.Close();
csfeixia 发表于 2019-8-26 10:54
form弹出右键(usercontrol)—操作菜单弹出form
欢迎光临 Smobiler上海石磨_.NET移动开发平台 (https://www.smobiler.cn/) | Powered by Discuz! X3.2 |