在使用模态行为的用户控件方面需要帮助. [英] Need help with a user control with a modal behavior.

查看:82
本文介绍了在使用模态行为的用户控件方面需要帮助.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,这是我在Code Project上的第一篇文章,我需要有关如何实现具有模态行为的用户控件的帮助和/或想法.

我唯一的问题是 我不能 使用任何形式的表格.

我已经尝试过这种方法,但它没有做我们需要做的事情.

我们的问题是,我们使用C#3.0开发的应用程序是全屏应用程序,具有安全性,可以强制用户留在应用程序中.

我们不使用其他表单,因为它会强制任务栏出现并禁用父全屏表单的主要安全性.

因此,主要形式中的所有内容都是用户控件.

如果您碰巧知道这是不可能的,那么您能否简单地详细说明一下这是不可能的.

Hi to all of you, this is my first post on Code Project and I need help and/or ideas on how to implement a user control that would have a modal behavior.

My only problem is that I CAN''T be using any kind of form.

I already try this approach and it is not doing what we need it to do.

Our problem is that the application we are developing with C# 3.0 is a full screen application with security to enforce the user to stay in the application.

We are not using other forms because it would force the taskbar to appear and disable the main security of the parent full screen form.

So everything in the main form is a user control.

If you happen to know that this is not possible, could you simply elaborate a little more to explain with this is not possible.

Thanks for you''re help and you''re answer, cheer.

推荐答案

我找到了解决我问题的方法,让UserControl具有以下行为:模态形式.

很简单.

只需使用事件处理程序,我就可以连接到UserControl的Yes和No按钮,然后通过在主窗体上全屏显示UserControl来充当模态窗体.

谢谢大家的帮助:).
I found the solution to my problem, to have a UserControl have the behavior of a modal form.

It was pretty easy.

Just by using event handlers, I was able to hook up to the UserControl Yes and No button, then by displaying this UserControl full screen on the main form, would act like a modal form.

Thanks all for you''re help, :).


这篇关于在使用模态行为的用户控件方面需要帮助.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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