Windows应用程序-Windows窗体 [英] Windows Application - Windows Forms

查看:118
本文介绍了Windows应用程序-Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家下午好,您周末过得怎么样?请我有一点挑战,需要帮助.我正在使用MDI父窗体在Windows应用程序上工作,并添加了用户可以与之交互的其他Windows窗体.我需要的是;一旦您正在使用其他Windows窗体,您将无法执行任何操作直到关闭其他Windows窗体,或者在完成对它的操作之前,请先将其保留在父窗体上.期待您的答复.

Good afternoon guys, how was your weekend? Please i have a little challenge and need help. i''m working on a Windows application with an MDI Parent Form and added other windows form that the user can interact with.What i need is;once your are working with the other windows form, you will not be able to perform any operation on the parent form until you close the other windows form or when you are through with the operation you are doing on it. Looking forward to your reply.

推荐答案

SIMOKOOL,您好,

您可以使用功能:

Hi SIMOKOOL,

You can use the function :

Child_Form.ShowDialog();



显示新的子窗体但不将其用作MDI子窗体时.

希望对您有所帮助,
:)



when showing your new Child form but not using it as a MDI Child.

I hope this help,
:)


始终可以访问MDI应用程序中的父"表单.为了证明这一点,请单击应用程序主窗体中的菜单. MDI应用程序中的父表单除了菜单,工具栏和/或状态栏外,没有其他功能.

在我看来,您对MDI应用程序的工作方式并不十分熟悉.要么,否则我不明白您的问题.
The "parent" form in a MDI app is always accessible. To prove it, click the menu in the main form of your app. The parent form in a MDI app doesn''t have any funcitonality other than a menu, toolbar, and/or status bar.

It looks to me like you''re not all that familiar with how MDI applications work. Either that, or I don''t understand your question.


您可以在另一种表单上拥有静态属性,以告诉其他;)表单它是打开的,并有事件通知其余表单:该属性已更改.

只是想一想
You can have static property on this other form that tells other ;) forms that it is open and event to notify the rest that the property has been changed.

Just a quick thought


这篇关于Windows应用程序-Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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