Solved

Embedding a Dos Console in a Windows Form

Posted on 2009-04-13
4
933 Views
Last Modified: 2012-05-06
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
Comment
Question by:navajo26354
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:srinivasbn
ID: 24134441
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
 

Author Comment

by:navajo26354
ID: 24149616
how can i embed this into a window form
0
 
LVL 5

Accepted Solution

by:
srinivasbn earned 500 total points
ID: 24183672
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
 

Author Closing Comment

by:navajo26354
ID: 31569728
I figured out how ot do it on my own
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question