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. This might not be possible...

This might not be possible...

Scheduled Pinned Locked Moved Windows Forms
csharpcom
6 Posts 4 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
    Steven M Hunt
    wrote on last edited by
    #1

    Hi there, I was wondering if it is possible to take a windows application and load the contents of the main window inside my c# application as either an MDI window or in a child control of some sort. At work we use some old software where each "module" is a seperate exe with its own window and I wanted to build a c# app with tabs or MDI windows or something to make it a bit more usable. We do not have access to the source code and its not managed code for sure. At first glance, it looks impossible, but I was hoping there was some sort of p/invoke or activeX magic out there. Thank you code project!

    -- Steven

    L R 2 Replies Last reply
    0
    • S Steven M Hunt

      Hi there, I was wondering if it is possible to take a windows application and load the contents of the main window inside my c# application as either an MDI window or in a child control of some sort. At work we use some old software where each "module" is a seperate exe with its own window and I wanted to build a c# app with tabs or MDI windows or something to make it a bit more usable. We do not have access to the source code and its not managed code for sure. At first glance, it looks impossible, but I was hoping there was some sort of p/invoke or activeX magic out there. Thank you code project!

      -- Steven

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can make it "look" as if an exe is running from your application using the SetParent API. To find out how, visit this CodeProject article :)

      I are Troll :suss:

      S 1 Reply Last reply
      0
      • S Steven M Hunt

        Hi there, I was wondering if it is possible to take a windows application and load the contents of the main window inside my c# application as either an MDI window or in a child control of some sort. At work we use some old software where each "module" is a seperate exe with its own window and I wanted to build a c# app with tabs or MDI windows or something to make it a bit more usable. We do not have access to the source code and its not managed code for sure. At first glance, it looks impossible, but I was hoping there was some sort of p/invoke or activeX magic out there. Thank you code project!

        -- Steven

        R Offline
        R Offline
        Ray Cassick
        wrote on last edited by
        #3

        Possible? Sure, but wise? That's another question... You are going to end up with a mish-mash of menu and tool bars (each app will have their own in their own window) and it is not going function like your typical MDI interface at all really.


        LinkedIn[^] | Blog[^] | Twitter[^]

        1 Reply Last reply
        0
        • L Lost User

          You can make it "look" as if an exe is running from your application using the SetParent API. To find out how, visit this CodeProject article :)

          I are Troll :suss:

          S Offline
          S Offline
          Steven M Hunt
          wrote on last edited by
          #4

          Thanks, that code did exactly what I needed it to. With a little customization, I got it so anytime an exe from our old software tries to run, it gets loaded in a tab on my program instead. Very cool! Thank you so much!

          -- Steven

          L G 2 Replies Last reply
          0
          • S Steven M Hunt

            Thanks, that code did exactly what I needed it to. With a little customization, I got it so anytime an exe from our old software tries to run, it gets loaded in a tab on my program instead. Very cool! Thank you so much!

            -- Steven

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            My pleasure :)

            I are Troll :suss:

            1 Reply Last reply
            0
            • S Steven M Hunt

              Thanks, that code did exactly what I needed it to. With a little customization, I got it so anytime an exe from our old software tries to run, it gets loaded in a tab on my program instead. Very cool! Thank you so much!

              -- Steven

              G Offline
              G Offline
              Giorgi Dalakishvili
              wrote on last edited by
              #6

              Have you seen this Window Tabifier[^]?

              Giorgi Dalakishvili #region signature My Articles Browsing xkcd in a windows 7 way[^] #endregion

              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