Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i made a console app and i want to control it from a form

What I have tried:

dim c as console

or

dim c as module1

but it will not work of course
what can i put instead of that
Posted
Updated 28-Dec-17 4:57am
Comments
Ralf Meier 28-Dec-17 10:43am    
I'm sorry ... with such less Information I have no idea how to help you ...

1 solution

You don't.
A console app is just that: an application which runs in a console, gets a set of startline parameters, and can read and write text to the console. It isn't something you can "embed" in your Forms application easily, because a Forms application doesn't have a console!

You can execute your app from within your form: [^] Or you can reference your app EXE file by right clicking "References" under your project in the Solution Explorer pane, and sellecting "Add a reference". You can then Import the assembly namespace(s) into your project files as needed: References and the Imports Statement (Visual Basic) | Microsoft Docs[^]
You can then use the classes in the EXE (provided they don't need to interact with the console).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900