void GetActiveWindow()
 {
     //在这里写加载新窗体的代码
     if (PopForm.isLoad == false)
     {
         popForm         = new PopForm();
         popForm.TopMost = true;
     }
     popForm.Show();//加载窗口
 }
        bool isClosed = false; //是否已关闭资源

        public Form1(string strLoginUser)
        {
            InitializeComponent();
            Form.CheckForIllegalCrossThreadCalls = false;
            popForm         = new PopForm(); //提示窗口已创建,等待显示
            popForm.TopMost = true;

            HotKey.RegisterHotKey(this.Handle, 100, 0, Keys.F1);
            HotKey.RegisterHotKey(this.Handle, 200, 0, Keys.F2);
            HotKey.RegisterHotKey(this.Handle, 600, 0, Keys.F6);


            myserver = new IPEndPoint(myip, 5800);
            userName = strLoginUser;
        }