private void about_Load(object sender, EventArgs e) { SysButtonItems.Clear(); BackgroundImage = null; CanResize = false; MaximizeBox = false; MinimizeBox = false; ShowDrawIcon = false; Text = "关于"; }
private void myMessageBox_Load(object sender, EventArgs e) { SysButtonItems.Clear(); Width = label1.Width + label1.Location.X * 2; skinPanel1.Width = this.Width; skinPanel1.Height = this.Height - 30; skinPanel1.Location = new Point(0, 30); button1.Location = new Point(Width - button1.Width - 20, button1.Location.Y); button2.Location = new Point(button1.Location.X - button2.Width - 10, button1.Location.Y); this.Left = (Screen.PrimaryScreen.WorkingArea.Width - Width) / 2; this.Top = (Screen.PrimaryScreen.WorkingArea.Height - Height) / 2; BackColor = Skin.readSkinINI(); }
private void about_Load(object sender, EventArgs e) { Image back; Color color; Skin.readSkinImgINI(out back, out color); BackColor = color; if (back != null) { Bitmap pic = Skin.SetEdgeBlur((Bitmap)back, color, 64, Skin.BLURSTYLE.RIGHT); BackgroundImage = Skin.SetEdgeBlur(pic, color, 64, Skin.BLURSTYLE.BOTTOM); } //AnimateWindow(this.Handle, 2000, AW_HOR_NEGATIVE); SysButtonItems.Clear(); CanResize = false; MaximizeBox = false; MinimizeBox = false; ShowDrawIcon = false; Text = "关于"; }