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