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. Windows Forms
  4. Making FileDialogs as Child Windows

Making FileDialogs as Child Windows

Scheduled Pinned Locked Moved Windows Forms
question
4 Posts 2 Posters 0 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.
  • T Offline
    T Offline
    TyrionTheImp
    wrote on last edited by
    #1

    Hi, I was wondering if its possible to make a File Dialog (Open/Save as) become the child window of a parent form and be fully "contained and bounded" in it. I can`t find any straight-forward way to do this, like Controls.Add or anything since they inherit from Component class. I also tried calling the Win32 SetParent function but it has no effect. Any suggestions please ? Thanks in advance.

    J 1 Reply Last reply
    0
    • T TyrionTheImp

      Hi, I was wondering if its possible to make a File Dialog (Open/Save as) become the child window of a parent form and be fully "contained and bounded" in it. I can`t find any straight-forward way to do this, like Controls.Add or anything since they inherit from Component class. I also tried calling the Win32 SetParent function but it has no effect. Any suggestions please ? Thanks in advance.

      J Offline
      J Offline
      JoeSharp
      wrote on last edited by
      #2

      hi yes is possible but: are you expert in API calls, i. e. WndProc, Farprocs, Hookprocs, HookFunctions ans so on. if not, is better you call the standard file dialog in the .net framework. regards

      T 1 Reply Last reply
      0
      • J JoeSharp

        hi yes is possible but: are you expert in API calls, i. e. WndProc, Farprocs, Hookprocs, HookFunctions ans so on. if not, is better you call the standard file dialog in the .net framework. regards

        T Offline
        T Offline
        TyrionTheImp
        wrote on last edited by
        #3

        Hi Joe, Yes i`m familiar with Win32 API .Can u tell me how using HookProcs and WndProcs will help ?

        J 1 Reply Last reply
        0
        • T TyrionTheImp

          Hi Joe, Yes i`m familiar with Win32 API .Can u tell me how using HookProcs and WndProcs will help ?

          J Offline
          J Offline
          JoeSharp
          wrote on last edited by
          #4

          hooks are not easy to use. look in the msdn help, set the filter to platform SDK an search for OPENFILENAME. good luck :-)

          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