Пример #1
0
        private void login_Click(object sender, EventArgs e)
        {
            LoginFrm login = new LoginFrm(this);

            login.TopMost = true;
            login.Show();
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            if (this.user == null)
            {
                LoginFrm login = new LoginFrm(this);
                login.TopMost = true;
                login.Show();
            }
            this.webBrowser1.Width  = tabControl1.TabPages[0].Width;
            this.webBrowser1.Height = tabControl1.TabPages[0].Height;
            this.webBrowser1.Navigate(@"E:\Project\CSharp\SCSM\Map\baidu.html");

            this.pictureBox1.Width = this.pictureBox1.Height;
        }