Click here to Skip to main content
12,998,776 members (68,452 online)
Click here to Skip to main content
Add your own
alternative version


20 bookmarked
Posted 24 May 2007

Mdi Manager VS2003 Style

, 24 May 2007
Rate this:
Please Sign up or sign in to vote.
Good choice for replace default mdi
Screenshot - asMdiManager.jpg


This Mdi control is look like VS2003, include feature TabTitle, CloseAll, MdiList but not support docking, drag n drop. Any question welcome. This is my first articles and fair english.


My last application use mdi but it always flicker when use Application.EnableVisualStyle() and switch between child form. I search from the internet and found many many. Some control has a lot of code then i decided to created own mdi control(light-weight) and shared to you.

Using the code

Before use this code, ensure to compile before.
Add the control to your VS ToolBox by choose file "asWins.Forms.dll" and select "asMdiManager".

Create a new MainForm and add MainMenu and control "asMdiManager" to MainForm but not set property IsMdiContainer to true because we do not use standard feature.

For all ChildForm must be inherit from class asWins.Forms.BaseForm it has property to allow open dupplicate form.

private bool m_AllowDuplicate; 
<summary />/// Allow open more than 1 times. 
</summary />[ 
Description("Allow open more than 1 times.") 
public bool AllowDuplicate 
    get {return m_AllowDuplicate;} 
    set {m_AllowDuplicate = value;} 

In MainForm when click on MenuItem to open child form in the old way we use

private void menuItem3_Click(object sender, System.EventArgs e)
        DummyForm frm = new DummyForm();
        frm.MdiParent = this;

Change to this code.
private void menuItem3_Click(object sender, System.EventArgs e)
        DummyForm frm = new DummyForm();

it very easy.


If you like it pls send postcard to me, see address at menu about.


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


About the Author

v# guy
Software Developer
Thailand Thailand
He start from web developer(asp classic) since 1997, and now use .net techonogy(c#,

You may also be interested in...

Comments and Discussions flicker Pin
Vincent_ws14-Aug-07 19:20
memberVincent_ws14-Aug-07 19:20 
GeneralRe: flicker Pin
Marcus Deecke17-Aug-07 11:56
memberMarcus Deecke17-Aug-07 11:56 
GeneralRe: flicker Pin
Vincent_ws19-Aug-07 15:59
memberVincent_ws19-Aug-07 15:59 
GeneralRe: flicker Pin
V# Guy18-Aug-07 0:20
memberV# Guy18-Aug-07 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170622.1 | Last Updated 25 May 2007
Article Copyright 2007 by v# guy
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid