• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 943
  • Last Modified:

Embedding a Dos Console in a Windows Form

How do you embed a dos console in a windows form using visual basic. I read about possibly using a text box for the out put of the dos console. However I would prefer to see the dos console but either way is fine for me
0
navajo26354
Asked:
navajo26354
  • 2
  • 2
1 Solution
 
srinivasbnCommented:
Hi navajo26354,

Write the following code:

Dim Prc as New Process
Prc.StartInfo.CreateNoWindow = False
Prc.StartInfo.FileName = "C:\windows\system\cmd.exe"
Prc.StartInfo.WindowStyle = ProcessWindowStyle.Normal
Prc.Start()


This will open the command console window for you.

Srinivas.B.N
0
 
navajo26354Author Commented:
how can i embed this into a window form
0
 
srinivasbnCommented:
Hi navajo26354,

i think you can't embed to the form because you are initiating it as a processor. Processor can't be made as a child component to the form.

Srinivas.B.N
0
 
navajo26354Author Commented:
I figured out how ot do it on my own
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now