Creating a Multi Form App for a Multi Monitor Windows Environment
-
Hi, I’m writing a new WinForms app (C#, .Net Core, Visual Studio 2019 Preview). The App was intended to take the form of an MDI Parent container with multiple MDI Child forms; however, I need to allow some of the child forms to leave the MDI Parent container and display on a second or third monitor. I really like the way that Visual Studio does this, the way it allows you to dock a pane within the main container but also allows you to drag panes out of the main container to show on a secondary monitor. Is that possible with an MDI parent/child scenario (I suspect not)? If not, what would be the best way to achieve it? Thanks in advance
-
Hi, I’m writing a new WinForms app (C#, .Net Core, Visual Studio 2019 Preview). The App was intended to take the form of an MDI Parent container with multiple MDI Child forms; however, I need to allow some of the child forms to leave the MDI Parent container and display on a second or third monitor. I really like the way that Visual Studio does this, the way it allows you to dock a pane within the main container but also allows you to drag panes out of the main container to show on a secondary monitor. Is that possible with an MDI parent/child scenario (I suspect not)? If not, what would be the best way to achieve it? Thanks in advance
For WinForms, you might want to take a look at: GitHub - dockpanelsuite/dockpanelsuite: DockPanel Suite - The Visual Studio inspired docking library for .NET WinForms[^] DockPanel Suite Documentation — dockpanelsuite 3.0 documentation[^] A Visual Studio 2005-like Interface[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
For WinForms, you might want to take a look at: GitHub - dockpanelsuite/dockpanelsuite: DockPanel Suite - The Visual Studio inspired docking library for .NET WinForms[^] DockPanel Suite Documentation — dockpanelsuite 3.0 documentation[^] A Visual Studio 2005-like Interface[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Hi, I’m writing a new WinForms app (C#, .Net Core, Visual Studio 2019 Preview). The App was intended to take the form of an MDI Parent container with multiple MDI Child forms; however, I need to allow some of the child forms to leave the MDI Parent container and display on a second or third monitor. I really like the way that Visual Studio does this, the way it allows you to dock a pane within the main container but also allows you to drag panes out of the main container to show on a secondary monitor. Is that possible with an MDI parent/child scenario (I suspect not)? If not, what would be the best way to achieve it? Thanks in advance
For simplicity, you don't "leave" the MDI container; you create a new (non-mdi) form and copy / use the state from the former; then hide / close the former.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food