Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Embedding a Dos Console in a Windows Form

Posted on 2009-04-13
4
Medium Priority
?
940 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

618 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