Embeding external application onto a windows form

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...
 
S

Stoitcho Goutsev \(100\)

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.
 
F

feudalac!

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?
 
B

bj7lewis

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...
 
S

Stoitcho Goutsev \(100\)

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.
 
F

feudalac!

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)
 
F

feudalac!

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top