Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Runtime.InteropServices;
- private void Form1_Load(object sender, EventArgs e)
- {
- AllocConsole();
- }
- [DllImport("kernel32.dll", SetLastError = true)]
- [return: MarshalAs(UnmanagedType.Bool)]
- static extern bool AllocConsole();
Add Comment
Please, Sign In to add comment