简体   繁体   English

具有Outlook界面的MDI应用程序,例如显示Winforms C#

[英]MDI application with outlook interface like display winforms c#

I have an MDI applicaiton working fine, now I want to display a DASHBOARD displaying 4-5 Grid controls where data is populating using workerbackground thread so far so good. 我有一个MDI应用程序,可以正常工作,现在我想显示一个显示4-5网格控件的仪表板,到目前为止,使用workerbackground线程填充数据的情况很好。

The requirement is that the Dashboard must stay on the background on the main parent form always becuase its receiveing live data. 要求是仪表板必须始终保留在主父窗体的背景上,因为它总是要接收实时数据。

Now when I am trying to display this user control (Dashboard) I am unable to show any child forms because this is MDI applcaiton. 现在,当我尝试显示此用户控件(仪表板)时,由于这是MDI应用程序,因此无法显示任何子窗体。

please is there any way that I can display my Dashboard usercontrol in the parent form and also the child forms, when ever required. 请以任何方式在需要时以父表单和子表单显示Dashboard用户控件。

Thanks 谢谢

Why don't you show the Dashboard user control in a MDI child form as well? 为什么还不以MDI子窗体形式显示Dashboard用户控件? You can rig that specific form not to have the control buttons (to prevent user from closing it) and not to be resizable, so that the application remains in control of it position. 您可以绑定该特定表单,使其不具有控制按钮(以防止用户关闭它)并且不能调整大小,以便应用程序控制其位置。

I assume that the user never really needs to interact with it, so you will also have to prevent it from getting focus, because that will hide all the other MDI forms. 我认为用户永远不需要真正与之交互,因此您还必须阻止它获得焦点,因为这将隐藏所有其他MDI表单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM