Exemple #1
0
        private void Frtishi_FormClosed(object sender, FormClosedEventArgs e)
        {
            Frzhuyaojiemian aa = new Frzhuyaojiemian();

            aa.yonghu = yonghu;
            aa.Show();
        }
Exemple #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            System.Drawing.Point pp    = new Point(Cursor.Position.X, Cursor.Position.Y);
            Rectangle            Rects = new Rectangle(this.Left, this.Top, this.Left + this.Width, this.Top + this.Height);

            if ((this.Top < 0 && Frzhuyaojiemian.PtInRect(ref Rects, pp)))     //这里的Form2是窗体的名字
            {
                this.Top = 0;
            }
            else
            {
                if (this.Top > -5 && this.Top < 5 && !(Frzhuyaojiemian.PtInRect(ref Rects, pp)))
                {
                    this.Top = 2 - this.Height;
                }
            }
        }
Exemple #3
0
        private void Frzhuyaojiemian_Load(object sender, EventArgs e)
        {
            labelControl1.Text = yonghu;
            NetWork3J NetWork3J = new NetWork3J(yonghu, "http://" + MyGlobal.ip + ":81/");

            NetWork3J.connection();
            string          a     = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            string          b     = a.Substring(a.Length - 2, 2);
            Frzhuyaojiemian form1 = new Frzhuyaojiemian();
            //this.Text = "ZOMS." + b;
            Bitmap bm = new Bitmap(System.Environment.CurrentDirectory + "\\" + "男.jpg");

            pictureEdit1.Image = null;
            pictureEdit1.Image = bm;

            timer2.Interval = 1;
            timer2.Start();
            timer3.Start();
        }