Guest User

Untitled

a guest
Oct 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. using System.Runtime.InteropServices;
  2.  
  3. private void Form1_Load(object sender, EventArgs e)
  4. {
  5. AllocConsole();
  6. }
  7.  
  8. [DllImport("kernel32.dll", SetLastError = true)]
  9. [return: MarshalAs(UnmanagedType.Bool)]
  10. static extern bool AllocConsole();
Add Comment
Please, Sign In to add comment