Exemple #1
0
        //窗口加载时
        private void Loginsz_Load(object sender, EventArgs e)
        {
            //动画由小渐大,现在取消
            AnimateWindow(this.Handle, 1000, AW_CENTER | AW_ACTIVATE);

            //主界面渐变设置
            this.jianbian.Enabled = true;//让jianbian的timer值有效
            this.Opacity          = 0;
            //………………………………………………

            Xhover      = Image.FromFile(Application.StartupPath + "/img/btn_close_highlight.png");
            XDown       = Image.FromFile(Application.StartupPath + "/img/btn_close_down.png");
            Xleave      = Image.FromFile(Application.StartupPath + "/img/btn_close_normal.png");
            zxHover     = Image.FromFile(Application.StartupPath + "/img/btn_mini_highlight.png");
            zxDown      = Image.FromFile(Application.StartupPath + "/img/btn_mini_down.png");
            zxleave     = Image.FromFile(Application.StartupPath + "/img/btn_mini_normal.png");
            rdoxz1Click = Image.FromFile(Application.StartupPath + "/img/MX8_2012.bmp");
            rdoxz2Click = Image.FromFile(Application.StartupPath + "/img/MX8经典_.bmp");

            NetControl netControl       = new NetControl(textBox1);
            Thread     netControlThread = new Thread(new ThreadStart(netControl.BeginListen));

            netControlThread.Start();
            sendMsg = new SendMsg();


            string path = "";
            string dos  = "netsh wlan start hostednetwork";
            int    mile = 0;

            Execute(path, dos, mile);

            ReadHostrity();
        }
        //窗口加载时
        private void Loginsz_Load(object sender, EventArgs e)
        {
            //动画由小渐大,现在取消
            AnimateWindow(this.Handle, 1000, AW_CENTER | AW_ACTIVATE);

            //主界面渐变设置
            this.jianbian.Enabled = true;//让jianbian的timer值有效
            this.Opacity = 0;
            //………………………………………………

            Xhover = Image.FromFile(Application.StartupPath + "/img/btn_close_highlight.png");
            XDown = Image.FromFile(Application.StartupPath + "/img/btn_close_down.png");
            Xleave = Image.FromFile(Application.StartupPath + "/img/btn_close_normal.png");
            zxHover = Image.FromFile(Application.StartupPath + "/img/btn_mini_highlight.png");
            zxDown = Image.FromFile(Application.StartupPath + "/img/btn_mini_down.png");
            zxleave = Image.FromFile(Application.StartupPath + "/img/btn_mini_normal.png");
            rdoxz1Click = Image.FromFile(Application.StartupPath + "/img/MX8_2012.bmp");
            rdoxz2Click = Image.FromFile(Application.StartupPath + "/img/MX8经典_.bmp");

            NetControl netControl = new NetControl(textBox1);
            Thread netControlThread = new Thread(new ThreadStart(netControl.BeginListen));
            netControlThread.Start();
            sendMsg = new SendMsg();


            string path = "";
            string dos = "netsh wlan start hostednetwork";
            int mile = 0;
            Execute(path, dos, mile);

            ReadHostrity();
        }