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. .NET (Core and Framework)
  4. MDI in CLR Windows Form Application

MDI in CLR Windows Form Application

Scheduled Pinned Locked Moved .NET (Core and Framework)
c++dotnettutorial
3 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.
  • S Offline
    S Offline
    SzyKam
    wrote on last edited by
    #1

    Hello! I built my first simple CLR program. On "OK" button clic it displays MessageBox. Can anybody tell me how to do so that I activate Child dialog-based window by clicking "OK" on a Main dialog-based form. I want the Child form to be Properities window so it has to send some "settings" to the Main window. What code should I put to my program to call a dialog-based window in another. PS. If You be so nice and tell me also how to do this in MFC apps. SzyKam

    J 1 Reply Last reply
    0
    • S SzyKam

      Hello! I built my first simple CLR program. On "OK" button clic it displays MessageBox. Can anybody tell me how to do so that I activate Child dialog-based window by clicking "OK" on a Main dialog-based form. I want the Child form to be Properities window so it has to send some "settings" to the Main window. What code should I put to my program to call a dialog-based window in another. PS. If You be so nice and tell me also how to do this in MFC apps. SzyKam

      J Offline
      J Offline
      Jun Du
      wrote on last edited by
      #2

      First, from you described, this can be done with or without using MDI. Windows (parent/child) relationship is all you need to handle. I assume you know what MDI and MFC are. Communications between windows can be done in a number of ways. For your first attempt, assign the main window to be the parent of your Property window. Before closing Property window, call its parent and pass all the data to the main window. On the main window, add code to handle Get/Set property so that the child window can call. Hope this is helpful.

      Best, Jun

      S 1 Reply Last reply
      0
      • J Jun Du

        First, from you described, this can be done with or without using MDI. Windows (parent/child) relationship is all you need to handle. I assume you know what MDI and MFC are. Communications between windows can be done in a number of ways. For your first attempt, assign the main window to be the parent of your Property window. Before closing Property window, call its parent and pass all the data to the main window. On the main window, add code to handle Get/Set property so that the child window can call. Hope this is helpful.

        Best, Jun

        S Offline
        S Offline
        SzyKam
        wrote on last edited by
        #3

        Thank You for your reply! Yes... I know what MFC and MDI are. Beceause I'm begining to work with Visual C++ and it will be best if you pass me this all knowledge in a "dumb-resistant" way... a mean source codes... Regards, SzyKam

        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