Solved

Embedding a Dos Console in a Windows Form

Posted on 2009-04-13
4
930 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now