在C#窗口应用程序中打开模式弹出窗口时,禁用其他窗口. [英] disable other window when modal popup open in c# window application.

查看:434
本文介绍了在C#窗口应用程序中打开模式弹出窗口时,禁用其他窗口.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#窗口应用程序.当我的模式弹出窗口打开时,我不想允许其他窗口访问.当该模式窗口关闭时,我希望允许其他可用窗口访问.如何在C#.NET 3.0中实现?

谢谢,
BarmatePCEA

I have a C# window application. when my modal popup window open i dont want to allow other window access.when that modal window close then i want to allow other available window access.How to achieve in C#.NET 3.0?

Thanks,
BarmatePCEA

推荐答案

如果您的意思是您的表单应阻止所有其他窗口(甚至属于其他应用程序的窗口)的激活,那是非常糟糕的设计,而且并不简单来自.NET.

Google for"System Modal C#",您应该找到所需的内容.

但是,这是一个非常糟糕的主意,在所有常规操作中都应避免.
If you mean that your form should prevent activation of all other windows, even those that belong to other applications, that is very bad design, and is not simple from .NET.

Google for "System Modal C#" and you should find what you need.

It is a very bad idea though and should be avoided in all normal operations.


这篇关于在C#窗口应用程序中打开模式弹出窗口时,禁用其他窗口.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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