打开子表单时禁用父表单 [英] Disable Parent form when we open child form

查看:76
本文介绍了打开子表单时禁用父表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我点击一个表单中的复选框时,另一个表单将以popupup的形式打开。问题是如何禁用父表单,直到子窗口打开。



问候,

Srikanth。

Hi,

When i click on checkbox in one form, another form will open as popupup.the problem is how to disable the parent form,upto child window opened.

Regards,
Srikanth.

推荐答案

使用模态形式,通过调用ShowDialog而不是Show。
By using a modal form, by calling ShowDialog instead of Show.


如果你的问题更精确,那么就可以回答了。但根据我的理解你可以使用



parentform.hide()在孩子表格开放时



试试吧。
If You make your question more ellaborate then it is esy to answer.But according to my understanding you can use

parentform.hide() at the time of child form is open

try it.


这篇关于打开子表单时禁用父表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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