Categories > Coding > C# >

is it possible to make a console in Windows Forms

WolfyBoyGames

MyNickName

Posts: 23

Threads: 11

Joined: Oct, 2021

Reputation: 0

Posted

title is my question

(is it possible to make a console in Windows Form)

  • 0

Hello Idk What to put here so here is some useless info:

Exploits I Own: Synapse X

 

Posts: 42

Threads: 5

Joined: Apr, 2022

Reputation: 0

Replied

Yes you can. use console api

https://docs.microsoft.com/en-us/windows/console/console-functions

  • 1

A generic in /quote "programmer"

WolfyBoyGames

MyNickName

Posts: 23

Threads: 11

Joined: Oct, 2021

Reputation: 0

Replied

@77242Ok thank you

  • 1

Hello Idk What to put here so here is some useless info:

Exploits I Own: Synapse X

 

Posts: 4

Threads: 0

Joined: Jan, 2022

Reputation: 0

Replied

        [DllImport("kernel32.dll")]
        internal static extern bool FreeConsole(); //Dispose Console

        [DllImport("kernel32.dll", SetLastError = true)]
        internal static extern bool AllocConsole(); //Show Console

You can use normal console methods, for example:

Console.WriteLine();

Console.Beep();

Console.Title = "blabla";

  • 1

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )