Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Form Layout SDI or MDI

Form Layout SDI or MDI

Scheduled Pinned Locked Moved C#
tutorialquestion
6 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    h s n
    wrote on last edited by
    #1

    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

    B P 2 Replies Last reply
    0
    • H h s n

      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

      B Offline
      B Offline
      Bhupi Bhai
      wrote on last edited by
      #2

      Why not use TabPages ?? Regards, Bhupi Bhai.

      1 Reply Last reply
      0
      • H h s n

        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

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        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.

        H 1 Reply Last reply
        0
        • P Pete OHanlon

          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.

          H Offline
          H Offline
          h s n
          wrote on last edited by
          #4

          Thank you can u guide me more. I have not found "WindowsFormsApplicationBase" usage through google search :(

          P 1 Reply Last reply
          0
          • H h s n

            Thank you can u guide me more. I have not found "WindowsFormsApplicationBase" usage through google search :(

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            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.

            H 1 Reply Last reply
            0
            • P Pete OHanlon

              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.

              H Offline
              H Offline
              h s n
              wrote on last edited by
              #6

              Thank you again. Can u look at code I am using for the purpose?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups