Click here to Skip to main content
Click here to Skip to main content

Single Instance Form in a MDI application

By , 20 Sep 2011

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

2 Oct 2011  
Manish K. Agarwal 3 alternatives  
 
Single Instance Form in a MDI application
28 Sep 2011  
Vladimir Vorobiev
 
This example contains the code to manage the menu of open forms (standard Windows menu). When created, each mdi-child gets a menu item and event handler through which this element is removed from the menu when the corresponding form is closed.private void ShowOrCreateMdiChild(Type formType)...
1 Oct 2011  
Rafał Klepacz
 
private void OpenForm() where T : Form, new(){ T frm = (T)new List(this.MdiChildren).Find(f => f is T) ?? new T() { MdiParent = this }; frm.Show(); frm.Focus();}and usageOpenForm();

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ctznkane

United States United States
No Biography provided

| | Privacy | Mobile
Web01 | 2.8.140421.2 | Last Updated 20 Sep 2011
Article Copyright 2011 by Ctznkane
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid