Embeding external application onto a windows form

  • Thread starter Thread starter feudalac!
  • Start date Start date
F

feudalac!

Hello

I want to be able to open an external application and embed it on my
form (something like an user control...)
Specificly: In my app, i have a panel at the bottom and want to embed a
command prompt (cmd) so it can't be moved around and it must appear as
it is part of my application...
 
feudalac!,
You cannot embed an application unless the application is a COM object that
can be inplace activated. Command promt is definitely not one of them.
 
Stoitcho said:
feudalac!,
You cannot embed an application unless the application is a COM object that
can be inplace activated. Command promt is definitely not one of them.
that is not what i ment...

When cmd is running, Can i tell it that it's parent is the form in my
application?
 
When cmd is running, Can i tell it that it's parent is the form in my
application?
Not sure if that you can... But I would just add redirection the cmd.exe
output to a Textbox Control... VS.NET does this during builds of C++ app not
sure of C# app builds but there is a batch file copied the C:\[TempDir] that
get ran on each build and you see the redirected output in VS.NET...

To find info cmd.exe output redirection check your fav search site...
 
Hi,

I believe the answer is - No. You cannot parent a top-level window.

As the other poster suggested you can redirect the console output and input,
but AFAIK you can do that only for a processes that your application starts.
Again AFAIK you cannot redirect the stdout and stdin for a process that is
already running.
 
bj7lewis said:
When cmd is running, Can i tell it that it's parent is the form in my
application?
Not sure if that you can... But I would just add redirection the cmd.exe
output to a Textbox Control... VS.NET does this during builds of C++ app not
sure of C# app builds but there is a batch file copied the C:\[TempDir] that
get ran on each build and you see the redirected output in VS.NET...

To find info cmd.exe output redirection check your fav search site...
That will do just fine.... Thanks

--
You're not paid to think. A mindless worker is a happy worker. Shut up
and do your job!
- Tata Feudalac!

Certified Social Engineering Specialist (Because there is no patch for
human stupidity)
 
Stoitcho said:
Hi,

I believe the answer is - No. You cannot parent a top-level window.

As the other poster suggested you can redirect the console output and input,
but AFAIK you can do that only for a processes that your application starts.
Again AFAIK you cannot redirect the stdout and stdin for a process that is
already running.

I am making an utility to ease my administration...

At some point i need six or more command prompts, so i was just
wondering ...


Thanks...

--
You're not paid to think. A mindless worker is a happy worker. Shut up
and do your job!
- Tata Feudalac!

Certified Social Engineering Specialist (Because there is no patch for
human stupidity)
 
Back
Top