Solved

Embedding a Dos Console in a Windows Form

Posted on 2009-04-13
4
934 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

730 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