Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
2 Oct 2011Manish K. Agarwal 3 alternatives
Single Instance Form in a MDI application
Assuming you only want a single instance of a form type, I'd suggest you add a Dictionary(Of Type, Form). ShowOrActiveForm would have a single parameter of Type and would be a subroutine.The Form object could be found based on a ContainsKey. The rest of the ShowOrActiveForm function would be...
28 Sep 2011Vladimir 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)...
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.