Form Layout SDI or MDI
-
Please tell me what interface Microsoft Office 2003 provides. Is that SDI (Single Document Interface) or MDI (Multiple Document Interface)? It looks like MDI but it shows one child window that cannot minimized or restored but provides ability to close document only. Please tell me how I can get that functionality with my application. I have made a "MainForm" having Menu, toolbar and statusbar and made it isMdi property true. I have "subForm" that I want to create but same like MsWord 2003. Please guide. Thank You. -- modified at 6:37 Friday 8th December, 2006
-
Please tell me what interface Microsoft Office 2003 provides. Is that SDI (Single Document Interface) or MDI (Multiple Document Interface)? It looks like MDI but it shows one child window that cannot minimized or restored but provides ability to close document only. Please tell me how I can get that functionality with my application. I have made a "MainForm" having Menu, toolbar and statusbar and made it isMdi property true. I have "subForm" that I want to create but same like MsWord 2003. Please guide. Thank You. -- modified at 6:37 Friday 8th December, 2006
Why not use TabPages ?? Regards, Bhupi Bhai.
-
Please tell me what interface Microsoft Office 2003 provides. Is that SDI (Single Document Interface) or MDI (Multiple Document Interface)? It looks like MDI but it shows one child window that cannot minimized or restored but provides ability to close document only. Please tell me how I can get that functionality with my application. I have made a "MainForm" having Menu, toolbar and statusbar and made it isMdi property true. I have "subForm" that I want to create but same like MsWord 2003. Please guide. Thank You. -- modified at 6:37 Friday 8th December, 2006
Office works using a different architecture to MDI/SDI, known as Multiple-SDI. .NET 2 supports this architecture through the WindowsFormsApplicationBase class. As an example:
class MyOffice : WindowsFormsApplicationBase { static MyOffice application; internal static MyOffice Application { get { if (application == null) application = new MyOffice(); return application; } } public MyOffice() { // Switch it into Multiple SDI mode. IsSingleInstance = true; // Tell the application to shut down after all forms have closed. ShutdownStyle = ShutdownMode.AfterAllFormsClose; } protected override OnCreateMainForm() { MainForm = CreateTopLevelWindow(CommandLineArgs); } // ... and so on. }
This should give you an idea as to how they are constructed. Have a search for WindowsFormsApplicationBase on Google.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.
-
Office works using a different architecture to MDI/SDI, known as Multiple-SDI. .NET 2 supports this architecture through the WindowsFormsApplicationBase class. As an example:
class MyOffice : WindowsFormsApplicationBase { static MyOffice application; internal static MyOffice Application { get { if (application == null) application = new MyOffice(); return application; } } public MyOffice() { // Switch it into Multiple SDI mode. IsSingleInstance = true; // Tell the application to shut down after all forms have closed. ShutdownStyle = ShutdownMode.AfterAllFormsClose; } protected override OnCreateMainForm() { MainForm = CreateTopLevelWindow(CommandLineArgs); } // ... and so on. }
This should give you an idea as to how they are constructed. Have a search for WindowsFormsApplicationBase on Google.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.
-
Thank you can u guide me more. I have not found "WindowsFormsApplicationBase" usage through google search :(
Here you go. Plenty of examples here: http://www.google.co.uk/search?hl=en&safe=active&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=Windowsformsapplicationbase&spell=1[^]
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.
-
Here you go. Plenty of examples here: http://www.google.co.uk/search?hl=en&safe=active&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=Windowsformsapplicationbase&spell=1[^]
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.