Exemplo n.º 1
0
        protected void OnAutoScrollChanged(object sender, AutoScrollEventArgs e)
        {
            if (!this.m_AlreadyChangingSize && ((Control)sender).Visible)
            {
                try {
                    this.m_AlreadyChangingSize = true;

                    if (e.Appeared)
                    {
                        this.BeginInvoke(new MethodInvoker(this.AutoScrollIncreaseSize));
                    }
                    else
                    {
                        this.BeginInvoke(new MethodInvoker(this.AutoScrollReduceSize));
                    }
                } finally {
                    this.m_AlreadyChangingSize = false;
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// This notifies the parent control that a change to the auto-scrollbar of the child has
 /// occurred
 ///
 /// NOTE: This is part of the fix for bug 678
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnAutoScrollChanged(object sender, AutoScrollEventArgs e)
 {
     this.AutoScrollChanged(this, e);
 }