0

So I'm working on a project called PteroController, and I'm trying to find a way to display a console inside a form, so I can show the console output I get from a web socket, which can be color coded by default using ASCII color codes. So what I need is a console inside a form that I can send output to.

I did not try some code but i looked everywhere!

4
  • stackoverflow.com/questions/51680382/… Commented Sep 14, 2023 at 12:20
  • If you want to show a Console window inside a Form, see: Unhook Window into its original State -- Read the notes there Commented Sep 14, 2023 at 13:27
  • @Jimi i got to have a console so i can output my own output that i want and it can be colored output Commented Sep 14, 2023 at 13:49
  • Yep. That code is used to embed inside a Container (e.g., a Panel) any window that has a Handle (as the Console window). If you just want to show a Console to output some data and you don't need the embedding stuff, just use the Process class to execute cmd.exe or the Windows Terminal. Or maybe run a PowerShell script for the pre-processing, to just show the output in a Console window Commented Sep 14, 2023 at 15:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.