temp0305
////MainForm.Server
private void ShowEventControl(bool refresh) { this.btnMessage.ImageIndex = 1; if (messageControl1.IsDisposed) { messageControl1 = new UI.UControl.MessageControl(); messageControl1.Visible = false; } this.messageControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); if (refresh) Application.DoEvents(); messageControl1.Location = new Point(this.ClientSize.Width - messageControl1.Width, this.ClientSize.Height - messageControl1.Height-67); if (this.ActiveMdiChild == null) { messageControl1.Parent = this; } else { messageControl1.Parent = this.ActiveMdiChild; } messageControl1.Parent.Controls.SetChildIndex(messageControl1, 0); }
清清软件园 http://sillysoft.taobao.com