Пример #1
0
 public void hide()
 {
     NLabel.Hide();
     NBox.Hide();
     MLabel.Hide();
     MBox.Hide();
     sceneImage.Hide();
 }
Пример #2
0
        public Form1()
        {
            _5pW   = _5pL = _5pD = 0;
            p5flag = drawflag = imgflag = whsflag = true;
            this.Hide();
            this.Location = new Point(150, 150);
            //this.ShowInTaskbar = true;
            InitializeComponent();


            //Gomoku a = new Gomoku();
            //a.ShowDialog();

            this.ShowInTaskbar = true;

            trackBar1.Hide();
            ColorBox.Hide();
            button2.Hide();

            Login log = new Login();

            log.ShowDialog();
            if (log.DialogResult == DialogResult.Cancel)
            {
                this.Close();
            }
            else
            {
                this.Show();
                //this.ShowInTaskbar = true;
                SetUpData init = log.Get();
                Username = init.UserName;


                MLabel.Hide();
                //Box.ForeColor = Bcolor;
                UserBox.DataSource = UserList;
                myGraphic          = DrawBox.CreateGraphics();
                DrawBox.BringToFront();

                c.Setup(init.IP, init.Port);


                //addMsg("2.成功連線");

                msgHandler = this.addMsg;
                dwHandler  = this.addDw;
                imgHandler = this.ShowPic;
                c.Recv(processMsgComeIn, processDwComeIn, processImgComeIn);

                //MessageBox.Show("歡迎加入~");
            }
        }
Пример #3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            MLabel.Show();
            if (second == 50)
            {
                second = 0;
                MLabel.Hide();
                timer1.Stop();
            }
            else
            {
                second++;
                String temp = Marquee.Substring(0, 1);
                Marquee      = Marquee.Substring(1, Marquee.Length - 1) + Marquee_temp.Substring(0, 1);
                Marquee_temp = Marquee_temp.Substring(1, Marquee_temp.Length - 1) + temp;


                MLabel.Text = Marquee;
            }
        }