public void DoDispose() { if (this.InvokeRequired) { ParentDelegate f = new ParentDelegate(DoDispose); this.Invoke(f); } else { this.Dispose(); } }
protected void ScrollToBottom() { if (this.InvokeRequired) { ParentDelegate p = new ParentDelegate(ScrollToBottom); this.Invoke(p); } else { this.flowLayoutPanel1.VerticalScroll.Value = this.flowLayoutPanel1.VerticalScroll.Maximum; } //int visibleItems = this.listBox1.ClientSize.Height / this.listBox1.ItemHeight; //this.listBox1.TopIndex = Math.Max(this.listBox1.Items.Count - visibleItems + 1, 0); }
public void DoActivate() { if (this.InvokeRequired) { ParentDelegate f = new ParentDelegate(DoActivate); this.Invoke(f); } else { //this.Show(); bool focused = (this == Form.ActiveForm); if (this.sp != null && this.sp.IsLoadCompleted && !focused) { this.sp.Play(); } FlashWindow(this.Handle, true); } }
public void DoActivate() { if (this.InvokeRequired) { ParentDelegate f = new ParentDelegate(DoActivate); this.Invoke(f); } else { FlashWindow(this.Handle, true); } }