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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to show A Form in openfiledialog?

How to show A Form in openfiledialog?

Scheduled Pinned Locked Moved C#
tutorialquestion
5 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.
  • P Offline
    P Offline
    Pawan Kiran
    wrote on last edited by
    #1

    Hi I have 11 Forms in my app. In Form1 (Ismdicontainer=true) i have 9 buttons when i click on each button i want to open a new form (Mdiparent as Form1) Inside each form i created some folders and gridviews.. in Form11 i have openfiledialog.. now i want to open Form1 inside the Openfiledialog to select the files which i have with me... Thanks in advance..

    M OriginalGriffO 2 Replies Last reply
    0
    • P Pawan Kiran

      Hi I have 11 Forms in my app. In Form1 (Ismdicontainer=true) i have 9 buttons when i click on each button i want to open a new form (Mdiparent as Form1) Inside each form i created some folders and gridviews.. in Form11 i have openfiledialog.. now i want to open Form1 inside the Openfiledialog to select the files which i have with me... Thanks in advance..

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Openfiledialog is a winforms dialog, you have very limited control over it, you certainly can;t "open form1 inside the dialog"

      Never underestimate the power of human stupidity RAH

      OriginalGriffO P 2 Replies Last reply
      0
      • M Mycroft Holmes

        Openfiledialog is a winforms dialog, you have very limited control over it, you certainly can;t "open form1 inside the dialog"

        Never underestimate the power of human stupidity RAH

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        That turns out not to be the case, sort of. You can extend the OpenFileDialog[^] to incorporate whatever you want, which could include thumbnails of existing forms, or buttons to refer to existing forms. I have used this to extend it for viewing templates, etc. many times in the past. I would agree that trying to include an existing form inside a open dialog is a bit daft, though!

        You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • P Pawan Kiran

          Hi I have 11 Forms in my app. In Form1 (Ismdicontainer=true) i have 9 buttons when i click on each button i want to open a new form (Mdiparent as Form1) Inside each form i created some folders and gridviews.. in Form11 i have openfiledialog.. now i want to open Form1 inside the Openfiledialog to select the files which i have with me... Thanks in advance..

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          You can't include an existing form that is being displayed inside a OpenFileDialog, but you can extend the OpenFileDialog to include the controls that are inside your form. See here[^]

          You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          • M Mycroft Holmes

            Openfiledialog is a winforms dialog, you have very limited control over it, you certainly can;t "open form1 inside the dialog"

            Never underestimate the power of human stupidity RAH

            P Offline
            P Offline
            Pawan Kiran
            wrote on last edited by
            #5

            I have seen this kind of functionality in M-Files Application... For more information look into Site: Google (search for M-Files). Thanks & Regards Pawan.

            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