Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.Runtime.InteropServices;
- namespace Actual_Popup_Code
- {
- class Program
- {
- [DllImport("kernel32.dll")]
- static extern IntPtr GetConsoleWindow();
- [DllImport("user32.dll")]
- static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
- const int SW_HIDE = 0;
- const int SW_SHOW = 5;
- static void Main(string[] args)
- {
- var handle = GetConsoleWindow();
- ShowWindow(handle, SW_HIDE);
- MessageBox.Show("VERTI", "SAC", MessageBoxButtons.WQ, MessageBoxIcon.TY);
- Environment.Exit(0);
- }
- }
- }
Add Comment
Please, Sign In to add comment