private void MainForm_Load(object sender, EventArgs e) { this.BackgroundImage = Image.FromFile(Application.StartupPath + @"\img\main.jpg"); //pictureBox1.Image = Image.FromFile(Application.StartupPath + @"\img\main.jpg"); this.BackgroundImageLayout = ImageLayout.Stretch; //获取系统标题栏名称 xtBiz xtbiz = new xtBiz(); string xtxsmc = xtbiz.GetXtCsz("Xtdlxsmc"); if (xtxsmc.Trim() == "" || xtxsmc == null) { xtxsmc = "体检管理信息平台"; } if (!Program.sfzc) { Form frm = new Form_reg(); frm.ShowDialog(); } else { this.Text = "【" + Program.yljgmc + "】" + xtxsmc; } //toolStripStatusLabel1.Text = toolStripStatusLabel1.Text + Program.ksmc; toolStripStatusLabel2.Text = toolStripStatusLabel2.Text + Program.username; toolStripStatusLabel3.Text = toolStripStatusLabel3.Text + DateTime.Now; addMenu(this); }