public FrmMain() { InitializeComponent(); webBrowser1.Url = new Uri(String.Format("{0:G}?CLIENTID={1:G}", MyApp.HOME_URL, Computer.getClientID())); //调整初始化窗口 this.FormBorderStyle = FormBorderStyle.None; fixWindowSize(); //初始化 lblFirstTitle.ImageList = ilTitle; lblFirstTitle.ImageIndex = 0; plTitle.BackColor = Color.FromArgb(255, 56, 154, 218); plSystem.BackColor = plTitle.BackColor; pageControl = new PageControl(this, this.plBody); pageControl.AddItem(webBrowser1); titles = new TitleControl(this.plTitle, lblFirstTitle); titles.GoClick = goPageClick; titles.CloseClick = closePageClick; lblFirstTitle.Click += goPageClick; lblFirstTitle.Text = MyApp.APP_NAME; titles.AddItem(btnPage); btnNew.Click += this.newPageClick; }