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. Host app in C#

Host app in C#

Scheduled Pinned Locked Moved C#
csharptutorialquestion
4 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.
  • M Offline
    M Offline
    MBGeorge
    wrote on last edited by
    #1

    Anyone have any ideea how to host other application in .net ? I start the word/notepad/cmd using process but i want my app to host it not the windows, something like mdi forms; when i minimize the hosted app i wanna go at base in my form not in windows. Thanks in advance .

    G D H 3 Replies Last reply
    0
    • M MBGeorge

      Anyone have any ideea how to host other application in .net ? I start the word/notepad/cmd using process but i want my app to host it not the windows, something like mdi forms; when i minimize the hosted app i wanna go at base in my form not in windows. Thanks in advance .

      G Offline
      G Offline
      Gavin Jeffrey
      wrote on last edited by
      #2

      Don't know about notepda but ther are a lot of com components that you can use inside your own forms e.g. Windows media player. If you are using visual studios then right click on the toolbar and select customize toolbar and you will get tons of com and .net components.

      1 Reply Last reply
      0
      • M MBGeorge

        Anyone have any ideea how to host other application in .net ? I start the word/notepad/cmd using process but i want my app to host it not the windows, something like mdi forms; when i minimize the hosted app i wanna go at base in my form not in windows. Thanks in advance .

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        There's no way for you to "host" the app in your application. You simply cannot redirect where your hosted application's drawing code is going to paint its window. You would have to completely rewrite the Window Manager subsystem of Windows and essentially make your application the new Desktop. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        • M MBGeorge

          Anyone have any ideea how to host other application in .net ? I start the word/notepad/cmd using process but i want my app to host it not the windows, something like mdi forms; when i minimize the hosted app i wanna go at base in my form not in windows. Thanks in advance .

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          Those are separate applications with their own top-leve windows; you cannot host them. You can only host controls. In the case of Office applications like Word, you can host the Active Document container (pretty much everything) and - if you go to a massive amount of work - even get information to host the toolbars. This is not supported in .NET, however, not until 2.0 at least (which adds the ActiveDocument control. You can write your own, though, but you must have a good understanding of COM and interoperability with .NET; otherwise, you should try googling the net for examples that already do this. Also note that you can host the Word OCW control which was designed to be hosted in a web page (OCW == "Office Components for the Web"). That's as easy as customizing your Toolbox in Visual Studio and dragging "Word" onto your form. Now you can host Word documents. You do the same with Windows Media Player as someone else suggested. Note all applications support this, however: only ActiveX controls are supported. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

          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